mirror of
https://github.com/cheeaun/phanpy.git
synced 2025-02-25 01:08:50 +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],
|
[account?.id],
|
||||||
);
|
);
|
||||||
|
|
||||||
|
const sameCurrentInstance = useMemo(
|
||||||
|
() => instance === api().instance,
|
||||||
|
[instance],
|
||||||
|
);
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (!isString) {
|
if (!isString) {
|
||||||
setInfo(account);
|
setInfo(account);
|
||||||
|
@ -141,6 +146,7 @@ function AccountInfo({
|
||||||
}
|
}
|
||||||
const results = await followersIterator.current.next();
|
const results = await followersIterator.current.next();
|
||||||
if (isSelf) return results;
|
if (isSelf) return results;
|
||||||
|
if (!sameCurrentInstance) return results;
|
||||||
|
|
||||||
const { value } = results;
|
const { value } = results;
|
||||||
let newValue = [];
|
let newValue = [];
|
||||||
|
|
Loading…
Reference in a new issue