diff options
author | Eric Bailey <git@esb.lol> | 2024-06-12 16:52:00 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-12 16:52:00 -0500 |
commit | a55f924639605709d436474073e75f9f39a84276 (patch) | |
tree | eda52350bb5e49f7581bf806d7f269d9dc271223 /src | |
parent | 99078bbff2282ad18594a4d5a4ed5fe207c394e4 (diff) | |
download | voidsky-a55f924639605709d436474073e75f9f39a84276.tar.zst |
Just use server count (#4499)
* Just use server count * Fix count
Diffstat (limited to 'src')
-rw-r--r-- | src/components/KnownFollowers.tsx | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/src/components/KnownFollowers.tsx b/src/components/KnownFollowers.tsx index b99fe3398..2b8dcc866 100644 --- a/src/components/KnownFollowers.tsx +++ b/src/components/KnownFollowers.tsx @@ -82,15 +82,6 @@ function KnownFollowersInner({ t.atoms.text_contrast_medium, ] - // list of users, minus blocks - const returnedCount = cachedKnownFollowers.followers.length - // db count, includes blocks - const fullCount = cachedKnownFollowers.count - // knownFollowers can return up to 5 users, but will exclude blocks - // therefore, if we have less 5 users, use whichever count is lower - const count = - returnedCount < 5 ? Math.min(fullCount, returnedCount) : fullCount - const slice = cachedKnownFollowers.followers.slice(0, 3).map(f => { const moderation = moderateProfile(f, moderationOpts) return { @@ -104,6 +95,7 @@ function KnownFollowersInner({ moderation, } }) + const count = cachedKnownFollowers.count - Math.min(slice.length, 2) return ( <Link |