From 7ba5ee5fe2e400fa44e662934c60db96e100fc48 Mon Sep 17 00:00:00 2001 From: Lim Chee Aun Date: Sat, 23 Sep 2023 22:38:29 +0800 Subject: [PATCH] Don't call familiar_followers if not same instance as logged-in instance --- src/components/account-info.jsx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/components/account-info.jsx b/src/components/account-info.jsx index cea5839a..78d5f056 100644 --- a/src/components/account-info.jsx +++ b/src/components/account-info.jsx @@ -73,6 +73,11 @@ function AccountInfo({ [account?.id], ); + const sameCurrentInstance = useMemo( + () => instance === api().instance, + [instance], + ); + useEffect(() => { if (!isString) { setInfo(account); @@ -141,6 +146,7 @@ function AccountInfo({ } const results = await followersIterator.current.next(); if (isSelf) return results; + if (!sameCurrentInstance) return results; const { value } = results; let newValue = [];