From 4a5ca8d030b54b4ee6864b6291d512db03c8ed8d Mon Sep 17 00:00:00 2001 From: smolgrrr Date: Wed, 1 Nov 2023 13:50:33 +1100 Subject: [PATCH] add more relays --- client/src/components/Modals/TextModal.tsx | 10 +++++----- client/src/utils/relays.ts | 6 ++++-- 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/client/src/components/Modals/TextModal.tsx b/client/src/components/Modals/TextModal.tsx index ae378d4..52444fe 100644 --- a/client/src/components/Modals/TextModal.tsx +++ b/client/src/components/Modals/TextModal.tsx @@ -17,11 +17,11 @@ const ContentPreview = ({ key, comment }: { key: string, comment: string }) => { }; useEffect(() => { - // const findUrl = comment.match(/\bhttps?:\/\/\S+/gi); - // if (findUrl && findUrl.length > 0) { - // setUrl(findUrl[0]) - // setFinalComment(finalComment.replace(findUrl[0], '').trim()) - // } + const findUrl = comment.match(/\bhttps?:\/\/\S+/gi); + if (findUrl && findUrl.length > 0) { + setUrl(findUrl[0]) + setFinalComment(finalComment.replace(findUrl[0], '').trim()) + } const match = comment.match(/\bnostr:([a-z0-9]+)/i); const nostrQuoteID = match && match[1]; diff --git a/client/src/utils/relays.ts b/client/src/utils/relays.ts index 5e2eca3..5a07a65 100644 --- a/client/src/utils/relays.ts +++ b/client/src/utils/relays.ts @@ -99,8 +99,10 @@ export const publish = (event: Event) => { addRelay('wss://relay.snort.social'); -addRelay('wss://nostr.bitcoiner.social'); +addRelay('wss://relay.damus.io'); addRelay('wss://nostr.mom'); addRelay('wss://relay.nostr.bg'); addRelay('wss://nos.lol'); -addRelay('wss://powrelay.xyz'); \ No newline at end of file +addRelay('wss://powrelay.xyz'); +addRelay('wss://relay.mostr.pub'); +addRelay('wss://nostr.mutinywallet.com'); \ No newline at end of file