fix: improve reply detection logic

This commit is contained in:
codytseng
2025-07-30 09:26:53 +08:00
parent 4ea5ea1705
commit 830362b941

View File

@@ -61,7 +61,11 @@ export function getParentETag(event?: Event) {
if (!tag) {
const embeddedEventIds = getEmbeddedNoteBech32Ids(event)
tag = event.tags.findLast(
([tagName, tagValue]) => tagName === 'e' && !!tagValue && !embeddedEventIds.includes(tagValue)
([tagName, tagValue, , marker]) =>
tagName === 'e' &&
!!tagValue &&
marker !== 'mention' &&
!embeddedEventIds.includes(tagValue)
)
}
return tag