mirror of
https://github.com/coracle-social/coracle.git
synced 2024-09-19 11:43:35 +00:00
Add mention mark to e tags embedded in notes
This commit is contained in:
parent
f4e1a9c5de
commit
b8a4232683
@ -116,7 +116,7 @@ const tagsFromContent = (content, tags) => {
|
|||||||
|
|
||||||
for (const {type, value} of parseContent({content})) {
|
for (const {type, value} of parseContent({content})) {
|
||||||
if (type.match(/nostr:(note|nevent)/) && !seen.has(value.id)) {
|
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)
|
seen.add(value.id)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user