feat: favorite relays (#250)

This commit is contained in:
Cody Tseng
2025-04-05 15:31:34 +08:00
committed by GitHub
parent fab9ff88b5
commit c739d9d28c
63 changed files with 1081 additions and 982 deletions

View File

@@ -1,5 +1,5 @@
import { Separator } from '@/components/ui/separator'
import { BIG_RELAY_URLS, COMMENT_EVENT_KIND } from '@/constants'
import { BIG_RELAY_URLS, ExtendedKind } from '@/constants'
import { isCommentEvent, isProtectedEvent } from '@/lib/event'
import { tagNameEquals } from '@/lib/tag'
import { cn } from '@/lib/utils'
@@ -71,7 +71,7 @@ export default function Nip22ReplyNoteList({
relayUrls.slice(0, 4),
{
'#E': [event.id],
kinds: [COMMENT_EVENT_KIND],
kinds: [ExtendedKind.COMMENT],
limit: LIMIT
},
{