From cd0cf159493d242a2f5808407415021d48016181 Mon Sep 17 00:00:00 2001
From: devin ivy <devinivy@gmail.com>
Date: Thu, 17 Aug 2023 11:08:03 -0400
Subject: [PATCH] Fix condition for viewing soft-deleted followers (#1485)

fix condition for viewing soft-deleted followers
---
 packages/pds/src/app-view/api/app/bsky/graph/getFollowers.ts | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/packages/pds/src/app-view/api/app/bsky/graph/getFollowers.ts b/packages/pds/src/app-view/api/app/bsky/graph/getFollowers.ts
index e7f307c2..1e0c0779 100644
--- a/packages/pds/src/app-view/api/app/bsky/graph/getFollowers.ts
+++ b/packages/pds/src/app-view/api/app/bsky/graph/getFollowers.ts
@@ -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(