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