Add claim to alert add

This commit is contained in:
Jon Staab
2025-06-27 14:36:09 -07:00
parent f2249fe592
commit b9620f4443
5 changed files with 41 additions and 17 deletions
+1 -4
View File
@@ -13,7 +13,6 @@ import {
sortBy,
assoc,
now,
removeNil,
isNotNil,
filterVals,
fromPairs,
@@ -442,9 +441,7 @@ export const discoverRelays = (lists: List[]) =>
)
export const requestRelayClaim = async (url: string) => {
const relay = await loadRelay(url)
const authors = removeNil([relay?.profile?.self, relay?.profile?.pubkey])
const filters = [{kinds: [AUTH_INVITE], authors, limit: 1}]
const filters = [{kinds: [AUTH_INVITE], limit: 1}]
const events = await load({filters, relays: [url]})
if (events.length > 0) {