fix: 🐛

This commit is contained in:
codytseng
2025-02-20 00:08:51 +08:00
parent fe7d3a8b32
commit 09f44fc1a0
5 changed files with 29 additions and 39 deletions

View File

@@ -1,5 +1,5 @@
import { Skeleton } from '@/components/ui/skeleton'
import { COMMENT_EVENT_KIND, PICTURE_EVENT_KIND } from '@/constants'
import { BIG_RELAY_URLS, COMMENT_EVENT_KIND, PICTURE_EVENT_KIND } from '@/constants'
import { useFetchEvent } from '@/hooks'
import { extractEmbeddedNotesFromContent, extractImagesFromContent } from '@/lib/event'
import { toNote } from '@/lib/link'
@@ -63,7 +63,7 @@ const NotificationList = forwardRef((_, ref) => {
const { closer, timelineKey } = await client.subscribeTimeline(
relayList.read.length >= 4
? relayList.read
: relayList.read.concat(client.getDefaultRelayUrls()).slice(0, 4),
: relayList.read.concat(BIG_RELAY_URLS).slice(0, 4),
{
'#p': [pubkey],
kinds: [kinds.ShortTextNote, kinds.Repost, kinds.Reaction, COMMENT_EVENT_KIND],