Fix subscriptions
This commit is contained in:
parent
709565486f
commit
8484599294
|
@ -367,9 +367,10 @@ export class VideosIdListQueryBuilder extends AbstractRunQuery {
|
||||||
' WHERE "videoShare"."videoId" = "video"."id"' +
|
' WHERE "videoShare"."videoId" = "video"."id"' +
|
||||||
' )' +
|
' )' +
|
||||||
' OR' +
|
' OR' +
|
||||||
' EXISTS (' + // Videos published by channels we follow
|
' EXISTS (' + // Videos published by channels or accounts we follow
|
||||||
' SELECT 1 from "actorFollow" ' +
|
' SELECT 1 from "actorFollow" ' +
|
||||||
' WHERE "actorFollow"."targetActorId" = "videoChannel"."actorId" AND "actorFollow"."actorId" = :followerActorId ' +
|
' WHERE ("actorFollow"."targetActorId" = "account"."actorId" OR "actorFollow"."targetActorId" = "videoChannel"."actorId") ' +
|
||||||
|
' AND "actorFollow"."actorId" = :followerActorId ' +
|
||||||
' AND "actorFollow"."state" = \'accepted\'' +
|
' AND "actorFollow"."state" = \'accepted\'' +
|
||||||
' )'
|
' )'
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue