mirror of
https://github.com/smolgrrr/TAO.git
synced 2024-09-20 09:21:25 +00:00
add more relays
This commit is contained in:
parent
c419fa95e5
commit
4a5ca8d030
@ -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];
|
||||
|
@ -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');
|
||||
addRelay('wss://powrelay.xyz');
|
||||
addRelay('wss://relay.mostr.pub');
|
||||
addRelay('wss://nostr.mutinywallet.com');
|
Loading…
Reference in New Issue
Block a user