💨
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
import { Separator } from '@/components/ui/separator'
|
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 { tagNameEquals } from '@/lib/tag'
|
||||||
import { cn } from '@/lib/utils'
|
import { cn } from '@/lib/utils'
|
||||||
import { useNostr } from '@/providers/NostrProvider'
|
import { useNostr } from '@/providers/NostrProvider'
|
||||||
@@ -63,7 +63,7 @@ export default function Nip22ReplyNoteList({
|
|||||||
try {
|
try {
|
||||||
const relayList = await client.fetchRelayList(event.pubkey)
|
const relayList = await client.fetchRelayList(event.pubkey)
|
||||||
const { closer, timelineKey } = await client.subscribeTimeline(
|
const { closer, timelineKey } = await client.subscribeTimeline(
|
||||||
relayList.read.slice(0, 5),
|
relayList.read.concat(BIG_RELAY_URLS).slice(0, 4),
|
||||||
{
|
{
|
||||||
'#E': [event.id],
|
'#E': [event.id],
|
||||||
kinds: [COMMENT_EVENT_KIND],
|
kinds: [COMMENT_EVENT_KIND],
|
||||||
|
|||||||
@@ -10,6 +10,7 @@ import { Event as NEvent, kinds } from 'nostr-tools'
|
|||||||
import { useEffect, useRef, useState } from 'react'
|
import { useEffect, useRef, useState } from 'react'
|
||||||
import { useTranslation } from 'react-i18next'
|
import { useTranslation } from 'react-i18next'
|
||||||
import ReplyNote from '../ReplyNote'
|
import ReplyNote from '../ReplyNote'
|
||||||
|
import { BIG_RELAY_URLS } from '@/constants'
|
||||||
|
|
||||||
const LIMIT = 100
|
const LIMIT = 100
|
||||||
|
|
||||||
@@ -56,7 +57,7 @@ export default function ReplyNoteList({ event, className }: { event: NEvent; cla
|
|||||||
try {
|
try {
|
||||||
const relayList = await client.fetchRelayList(event.pubkey)
|
const relayList = await client.fetchRelayList(event.pubkey)
|
||||||
const { closer, timelineKey } = await client.subscribeTimeline(
|
const { closer, timelineKey } = await client.subscribeTimeline(
|
||||||
relayList.read.slice(0, 5),
|
relayList.read.concat(BIG_RELAY_URLS).slice(0, 4),
|
||||||
{
|
{
|
||||||
'#e': [event.id],
|
'#e': [event.id],
|
||||||
kinds: [kinds.ShortTextNote],
|
kinds: [kinds.ShortTextNote],
|
||||||
|
|||||||
Reference in New Issue
Block a user