mirror of
https://github.com/PrimalHQ/primal-web-app.git
synced 2024-10-01 17:31:13 +00:00
Fix possible error with relay hints
This commit is contained in:
parent
c19a24e1a5
commit
237991a681
@ -445,6 +445,7 @@ export const sendEvent = async (event: NostrEvent, relays: Relay[], relaySetting
|
|||||||
const hintRelayUrls = event.tags.reduce((acc, t) => {
|
const hintRelayUrls = event.tags.reduce((acc, t) => {
|
||||||
if (
|
if (
|
||||||
t[0] === 'e' &&
|
t[0] === 'e' &&
|
||||||
|
t[2] &&
|
||||||
t[2].length > 0 &&
|
t[2].length > 0 &&
|
||||||
!relays.find(r => r.url === t[2])
|
!relays.find(r => r.url === t[2])
|
||||||
) {
|
) {
|
||||||
|
Loading…
Reference in New Issue
Block a user