mirror of
https://github.com/cheeaun/phanpy.git
synced 2025-02-24 16:58:47 +01:00
Don't call familiar_followers if not same instance as logged-in instance
This commit is contained in:
parent
4c3666df6a
commit
7ba5ee5fe2
1 changed files with 6 additions and 0 deletions
|
@ -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 = [];
|
||||
|
|
Loading…
Reference in a new issue