mirror of
https://github.com/aljazceru/ditto.git
synced 2025-12-30 19:54:24 +01:00
Remove self from suggested list
This commit is contained in:
@@ -61,6 +61,10 @@ async function renderV2Suggestions(c: AppContext, params: PaginatedListParams, s
|
||||
const ignored = follows.union(mutes);
|
||||
const pubkeys = suggested.union(trending).difference(ignored);
|
||||
|
||||
if (pubkey) {
|
||||
pubkeys.delete(pubkey);
|
||||
}
|
||||
|
||||
const authors = [...pubkeys].slice(offset, offset + limit);
|
||||
|
||||
const profiles = await store.query(
|
||||
|
||||
Reference in New Issue
Block a user