Browse Source

fix: 🐛

imwald
codytseng 7 months ago
parent
commit
5647eeb1a8
  1. 3
      src/components/FavoriteRelaysSetting/PullRelaySetsButton.tsx

3
src/components/FavoriteRelaysSetting/PullRelaySetsButton.tsx

@ -29,6 +29,7 @@ import { Event, kinds } from 'nostr-tools' @@ -29,6 +29,7 @@ import { Event, kinds } from 'nostr-tools'
import { useEffect, useState } from 'react'
import { useTranslation } from 'react-i18next'
import RelaySetCard from '../RelaySetCard'
import { buildATag } from '@/lib/draft-event'
export default function PullRelaySetsButton() {
const { t } = useTranslation()
@ -120,7 +121,7 @@ function RemoteRelaySets({ close }: { close?: () => void }) { @@ -120,7 +121,7 @@ function RemoteRelaySets({ close }: { close?: () => void }) {
if (!title) {
title = relayUrls.length === 1 ? simplifyUrl(relayUrls[0]) : id
}
relaySets.push({ id, name: title, relayUrls })
relaySets.push({ id, name: title, relayUrls, aTag: buildATag(evt) })
relaySetEventMap.set(id, evt)
})

Loading…
Cancel
Save