feat: adjust target relays for reviews

This commit is contained in:
codytseng
2025-09-30 15:36:36 +08:00
parent 98c6555ba5
commit bdeee4ec31
2 changed files with 3 additions and 3 deletions

View File

@@ -1,6 +1,5 @@
import { Button } from '@/components/ui/button'
import { Textarea } from '@/components/ui/textarea'
import { BIG_RELAY_URLS } from '@/constants'
import { createRelayReviewDraftEvent } from '@/lib/draft-event'
import { useNostr } from '@/providers/NostrProvider'
import { Loader2, Star } from 'lucide-react'
@@ -30,7 +29,7 @@ export default function ReviewEditor({
setSubmitting(true)
try {
const draftEvent = createRelayReviewDraftEvent(relayUrl, review, stars)
const evt = await publish(draftEvent, { specifiedRelayUrls: [relayUrl, ...BIG_RELAY_URLS] })
const evt = await publish(draftEvent)
onReviewed(evt)
} catch (error) {
if (error instanceof AggregateError) {