Fix condition for viewing soft-deleted followers ()

fix condition for viewing soft-deleted followers
This commit is contained in:
devin ivy 2023-08-17 11:08:03 -04:00 committed by GitHub
parent 7c88b43fc5
commit cd0cf15949
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -50,7 +50,7 @@ export default function (server: Server, ctx: AppContext) {
'creator_repo.did',
'follow.creator',
)
.if(canViewTakendownProfile, (qb) =>
.if(!canViewTakendownProfile, (qb) =>
qb.where(notSoftDeletedClause(ref('creator_repo'))),
)
.whereNotExists(