mirror of
https://gitlab.com/soapbox-pub/ditto.git
synced 2025-12-06 03:19:46 +00:00
nameRequestsController: display only owned 3036 events
This commit is contained in:
parent
e912210589
commit
100a5056eb
1 changed files with 5 additions and 1 deletions
|
|
@ -126,7 +126,11 @@ export const nameRequestsController: AppController = async (c) => {
|
|||
}
|
||||
}
|
||||
|
||||
const events = await store.query([{ kinds: [3036], ids: [...ids] }])
|
||||
if (ids.size === 0) {
|
||||
return c.json([]);
|
||||
}
|
||||
|
||||
const events = await store.query([{ kinds: [3036], ids: [...ids], authors: [pubkey] }])
|
||||
.then((events) => hydrateEvents({ store, events: events, signal: c.req.raw.signal }));
|
||||
|
||||
const nameRequests = await Promise.all(
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue