fix: 🐛

This commit is contained in:
codytseng
2025-12-24 13:22:38 +08:00
parent 89f79b999c
commit 56f0aa9fd5

View File

@@ -660,8 +660,7 @@ async function extractRelatedEventIds(content: string, parentEvent?: Event) {
? buildETagWithMarker(rootEvent.id, rootEvent.pubkey, hint, 'root') ? buildETagWithMarker(rootEvent.id, rootEvent.pubkey, hint, 'root')
: buildETagWithMarker(rootEventHexId, rootEventPubkey, hint, 'root') : buildETagWithMarker(rootEventHexId, rootEventPubkey, hint, 'root')
} }
} } else if (_rootTag?.type === 'a') {
if (_rootTag?.type === 'a') {
// Legacy // Legacy
parentTag = buildETagWithMarker(parentEvent.id, parentEvent.pubkey, '', 'reply') parentTag = buildETagWithMarker(parentEvent.id, parentEvent.pubkey, '', 'reply')
const [, coordinate, hint] = _rootTag.tag const [, coordinate, hint] = _rootTag.tag