Fix rendering suggested accounts
This commit is contained in:
parent
68375c555e
commit
a325908d41
|
@ -69,12 +69,12 @@ async function renderV2Suggestions(c: AppContext, params: PaginatedListParams, s
|
||||||
)
|
)
|
||||||
.then((events) => hydrateEvents({ events, store, signal }));
|
.then((events) => hydrateEvents({ events, store, signal }));
|
||||||
|
|
||||||
return Promise.all(authors.map((pubkey) => {
|
return Promise.all(authors.map(async (pubkey) => {
|
||||||
const profile = profiles.find((event) => event.pubkey === pubkey);
|
const profile = profiles.find((event) => event.pubkey === pubkey);
|
||||||
|
|
||||||
return {
|
return {
|
||||||
source: suggested.has(pubkey) ? 'staff' : 'global',
|
source: suggested.has(pubkey) ? 'staff' : 'global',
|
||||||
account: profile ? renderAccount(profile) : accountFromPubkey(pubkey),
|
account: profile ? await renderAccount(profile) : await accountFromPubkey(pubkey),
|
||||||
};
|
};
|
||||||
}));
|
}));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue