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 (
Date: Thu, 13 Jun 2024 04:23:37 +0200
Subject: [PATCH 2/6] Show social proof in hovercards (#4502)
* Add social proof to hovercards
* Close it more reliably
---
src/components/KnownFollowers.tsx | 8 +++++++-
src/components/ProfileHoverCard/index.web.tsx | 15 +++++++++++++++
2 files changed, 22 insertions(+), 1 deletion(-)
diff --git a/src/components/KnownFollowers.tsx b/src/components/KnownFollowers.tsx
index 2b8dcc866..3d4d362ef 100644
--- a/src/components/KnownFollowers.tsx
+++ b/src/components/KnownFollowers.tsx
@@ -8,7 +8,7 @@ import {makeProfileLink} from '#/lib/routes/links'
import {sanitizeDisplayName} from 'lib/strings/display-names'
import {UserAvatar} from '#/view/com/util/UserAvatar'
import {atoms as a, useTheme} from '#/alf'
-import {Link} from '#/components/Link'
+import {Link, LinkProps} from '#/components/Link'
import {Text} from '#/components/Typography'
const AVI_SIZE = 30
@@ -29,9 +29,11 @@ export function shouldShowKnownFollowers(
export function KnownFollowers({
profile,
moderationOpts,
+ onLinkPress,
}: {
profile: AppBskyActorDefs.ProfileViewDetailed
moderationOpts: ModerationOpts
+ onLinkPress?: LinkProps['onPress']
}) {
const cache = React.useRef