From 2aba89419e9c56c85c98639470033eeb661f5c57 Mon Sep 17 00:00:00 2001 From: codytseng Date: Sun, 12 Jan 2025 01:28:26 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Nip22ReplyNoteList/index.tsx | 4 ++-- src/components/ReplyNoteList/index.tsx | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/components/Nip22ReplyNoteList/index.tsx b/src/components/Nip22ReplyNoteList/index.tsx index 384a0c5d..26596f16 100644 --- a/src/components/Nip22ReplyNoteList/index.tsx +++ b/src/components/Nip22ReplyNoteList/index.tsx @@ -1,5 +1,5 @@ import { Separator } from '@/components/ui/separator' -import { COMMENT_EVENT_KIND } from '@/constants' +import { BIG_RELAY_URLS, COMMENT_EVENT_KIND } from '@/constants' import { tagNameEquals } from '@/lib/tag' import { cn } from '@/lib/utils' import { useNostr } from '@/providers/NostrProvider' @@ -63,7 +63,7 @@ export default function Nip22ReplyNoteList({ try { const relayList = await client.fetchRelayList(event.pubkey) const { closer, timelineKey } = await client.subscribeTimeline( - relayList.read.slice(0, 5), + relayList.read.concat(BIG_RELAY_URLS).slice(0, 4), { '#E': [event.id], kinds: [COMMENT_EVENT_KIND], diff --git a/src/components/ReplyNoteList/index.tsx b/src/components/ReplyNoteList/index.tsx index 1e1e4182..0596bff1 100644 --- a/src/components/ReplyNoteList/index.tsx +++ b/src/components/ReplyNoteList/index.tsx @@ -10,6 +10,7 @@ import { Event as NEvent, kinds } from 'nostr-tools' import { useEffect, useRef, useState } from 'react' import { useTranslation } from 'react-i18next' import ReplyNote from '../ReplyNote' +import { BIG_RELAY_URLS } from '@/constants' const LIMIT = 100 @@ -56,7 +57,7 @@ export default function ReplyNoteList({ event, className }: { event: NEvent; cla try { const relayList = await client.fetchRelayList(event.pubkey) const { closer, timelineKey } = await client.subscribeTimeline( - relayList.read.slice(0, 5), + relayList.read.concat(BIG_RELAY_URLS).slice(0, 4), { '#e': [event.id], kinds: [kinds.ShortTextNote],