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(rootEventHexId, rootEventPubkey, hint, 'root')
}
}
if (_rootTag?.type === 'a') {
} else if (_rootTag?.type === 'a') {
// Legacy
parentTag = buildETagWithMarker(parentEvent.id, parentEvent.pubkey, '', 'reply')
const [, coordinate, hint] = _rootTag.tag