fix: 🐛

This commit is contained in:
codytseng
2025-02-11 11:08:08 +08:00
parent d322f595fe
commit acd8348308
2 changed files with 1 additions and 12 deletions

View File

@@ -55,13 +55,7 @@ export default function LikeButton({
const targetRelayList = await client.fetchRelayList(event.pubkey)
const reaction = createReactionDraftEvent(event)
const isProtected = isProtectedEvent(event)
if (isProtected) {
const seenOn = client.getSeenEventRelayUrls(event.id)
await publish(reaction, { specifiedRelayUrls: seenOn })
} else {
await publish(reaction, { additionalRelayUrls: targetRelayList.read.slice(0, 3) })
}
await publish(reaction, { additionalRelayUrls: targetRelayList.read.slice(0, 4) })
markNoteAsLiked(event.id)
} catch (error) {
console.error('like failed', error)