Fix familiarFollowers call not working

This commit is contained in:
Lim Chee Aun 2023-10-19 01:13:12 +08:00
parent 3617bdc9cb
commit 3eda1e2267

View file

@ -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,