Fix internal user subscription

pull/4650/head
Chocobozzz 2021-12-17 14:42:31 +01:00
parent 3576225156
commit 9e2789aa4b
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
1 changed files with 2 additions and 2 deletions

View File

@ -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\'' +
' )'