forked from coracle/flotilla
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:
@@ -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})
|
||||
|
||||
Reference in New Issue
Block a user