From a7943442b5c338b52ea30e8a101b2bb8124b88da Mon Sep 17 00:00:00 2001 From: Gabi Purcaru Date: Tue, 20 Dec 2022 15:22:14 +0000 Subject: [PATCH] fix typo, fix bug where you could see yourself in the list --- components/Content.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/components/Content.tsx b/components/Content.tsx index 1a92bc6..cc653d8 100644 --- a/components/Content.tsx +++ b/components/Content.tsx @@ -86,6 +86,7 @@ async function accountFofs(handle: string, setProgress: (x: Array) => vo const indirectFollowMap = new Map(); const directFollowIds = new Set(directFollows.map(({ acct }) => acct)); + directFollowIds.add(handle.replace(/^@/, '')); indirectFollows.filter( // exclude direct follows @@ -218,7 +219,7 @@ export function Content({ }) { function AccountDetails({ account, mainDomain }) { const { avatar_static, display_name, acct, note, followers_count, followed_by } = account; let formatter = Intl.NumberFormat('en', { notation: 'compact' }); - let numfollows = formatter.format(followers_count); + let numFollowers = formatter.format(followers_count); console.log(account); return ( @@ -232,7 +233,7 @@ function AccountDetails({ account, mainDomain }) { {display_name}

- {acct} | {numfollows} follows + {acct} | {numFollowers} followers