Bluesky app fork with some witchin' additions 💫
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Just use server count (#4499)

* Just use server count

* Fix count

authored by

Eric Bailey and committed by
GitHub
a55f9246 99078bbf

+1 -9
+1 -9
src/components/KnownFollowers.tsx
··· 82 82 t.atoms.text_contrast_medium, 83 83 ] 84 84 85 - // list of users, minus blocks 86 - const returnedCount = cachedKnownFollowers.followers.length 87 - // db count, includes blocks 88 - const fullCount = cachedKnownFollowers.count 89 - // knownFollowers can return up to 5 users, but will exclude blocks 90 - // therefore, if we have less 5 users, use whichever count is lower 91 - const count = 92 - returnedCount < 5 ? Math.min(fullCount, returnedCount) : fullCount 93 - 94 85 const slice = cachedKnownFollowers.followers.slice(0, 3).map(f => { 95 86 const moderation = moderateProfile(f, moderationOpts) 96 87 return { ··· 104 95 moderation, 105 96 } 106 97 }) 98 + const count = cachedKnownFollowers.count - Math.min(slice.length, 2) 107 99 108 100 return ( 109 101 <Link