Fix condition for viewing soft-deleted followers (#1485)
fix condition for viewing soft-deleted followers
This commit is contained in:
parent
7c88b43fc5
commit
cd0cf15949
@ -50,7 +50,7 @@ export default function (server: Server, ctx: AppContext) {
|
|||||||
'creator_repo.did',
|
'creator_repo.did',
|
||||||
'follow.creator',
|
'follow.creator',
|
||||||
)
|
)
|
||||||
.if(canViewTakendownProfile, (qb) =>
|
.if(!canViewTakendownProfile, (qb) =>
|
||||||
qb.where(notSoftDeletedClause(ref('creator_repo'))),
|
qb.where(notSoftDeletedClause(ref('creator_repo'))),
|
||||||
)
|
)
|
||||||
.whereNotExists(
|
.whereNotExists(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user