From 2de34e3324e9ede75740b2e4beb984676623795d Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Thu, 10 Oct 2024 20:31:37 -0700 Subject: check relay tags --- lib/nostr.ts | 1 + 1 file changed, 1 insertion(+) (limited to 'lib') diff --git a/lib/nostr.ts b/lib/nostr.ts index 40dfc5f6..1fcea5c3 100644 --- a/lib/nostr.ts +++ b/lib/nostr.ts @@ -98,6 +98,7 @@ export let getRelays = async (pubkey): Promise => { read = []; write = []; for (let r of event.tags) { + if (r[0] !== "r") continue; if (!r[2] || r[2] === "write") write.push(r[1]); if (!r[2] || r[2] === "read") read.push(r[1]); } -- cgit v1.2.3