fix: only add protected tag on relays that advertise NIP-70 support (#305)

Co-authored-by: userAdityaa <aditya.chaudhary1558@gmail.com>
Co-committed-by: userAdityaa <aditya.chaudhary1558@gmail.com>
This commit is contained in:
2026-06-15 01:02:53 +00:00
committed by hodlbod
parent 448854b3cd
commit 430a3a589d
2 changed files with 13 additions and 9 deletions
+1 -1
View File
@@ -23,7 +23,7 @@
const relays = url ? [url] : Router.get().Event(event).getUrls()
const shouldProtect = url ? canEnforceNip70(url) : Promise.resolve(false)
const shouldProtect = url ? canEnforceNip70(url) : false
const deleteReaction = async (event: TrustedEvent) =>
publishDelete({relays, event, protect: await shouldProtect})