mirror of
https://github.com/cheeaun/phanpy.git
synced 2025-03-21 13:19:22 +01:00
Fix familiarFollowers call not working
This commit is contained in:
parent
3617bdc9cb
commit
3eda1e2267
1 changed files with 5 additions and 3 deletions
|
@ -223,9 +223,11 @@ function AccountInfo({
|
||||||
// On first load, fetch familiar followers, merge to top of results' `value`
|
// On first load, fetch familiar followers, merge to top of results' `value`
|
||||||
// Remove dups on every fetch
|
// Remove dups on every fetch
|
||||||
if (firstLoad) {
|
if (firstLoad) {
|
||||||
const familiarFollowers = await masto.v1.accounts
|
const familiarFollowers = await masto.v1.accounts.familiarFollowers.fetch(
|
||||||
.familiarFollowers(id)
|
{
|
||||||
.fetch();
|
id: [id],
|
||||||
|
},
|
||||||
|
);
|
||||||
familiarFollowersCache.current = familiarFollowers[0].accounts;
|
familiarFollowersCache.current = familiarFollowers[0].accounts;
|
||||||
newValue = [
|
newValue = [
|
||||||
...familiarFollowersCache.current,
|
...familiarFollowersCache.current,
|
||||||
|
|
Loading…
Reference in a new issue