Add mention mark to e tags embedded in notes

This commit is contained in:
Jonathan Staab 2023-06-07 04:34:54 -07:00
parent f4e1a9c5de
commit b8a4232683

View File

@ -116,7 +116,7 @@ const tagsFromContent = (content, tags) => {
for (const {type, value} of parseContent({content})) {
if (type.match(/nostr:(note|nevent)/) && !seen.has(value.id)) {
tags = tags.concat([["e", value.id]])
tags = tags.concat([["e", value.id, "mention"]])
seen.add(value.id)
}