Fix subscriptions
This commit is contained in:
parent
709565486f
commit
8484599294
1 changed files with 3 additions and 2 deletions
|
@ -367,9 +367,10 @@ export class VideosIdListQueryBuilder extends AbstractRunQuery {
|
|||
' WHERE "videoShare"."videoId" = "video"."id"' +
|
||||
' )' +
|
||||
' OR' +
|
||||
' EXISTS (' + // Videos published by channels we follow
|
||||
' EXISTS (' + // Videos published by channels or accounts we follow
|
||||
' 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\'' +
|
||||
' )'
|
||||
|
||||
|
|
Loading…
Reference in a new issue