Remove self from suggested list

This commit is contained in:
Alex Gleason 2024-06-02 22:59:06 -05:00
parent a325908d41
commit 6d5dbc029e
No known key found for this signature in database
GPG Key ID: 7211D1F99744FBB7
1 changed files with 4 additions and 0 deletions

View File

@ -61,6 +61,10 @@ async function renderV2Suggestions(c: AppContext, params: PaginatedListParams, s
const ignored = follows.union(mutes); const ignored = follows.union(mutes);
const pubkeys = suggested.union(trending).difference(ignored); const pubkeys = suggested.union(trending).difference(ignored);
if (pubkey) {
pubkeys.delete(pubkey);
}
const authors = [...pubkeys].slice(offset, offset + limit); const authors = [...pubkeys].slice(offset, offset + limit);
const profiles = await store.query( const profiles = await store.query(