mirror of
https://github.com/PrimalHQ/primal-web-app.git
synced 2024-09-30 00:41:09 +00:00
Fix article note replies
This commit is contained in:
parent
940baae8a6
commit
d419323f12
@ -715,17 +715,21 @@ const Longform: Component< { naddr: string } > = (props) => {
|
||||
|
||||
let id = mention.id;
|
||||
|
||||
updateStore('page', 'mentions',
|
||||
(mentions) => ({ ...mentions, [id]: { ...mention } })
|
||||
);
|
||||
|
||||
if (mention.kind === Kind.LongForm) {
|
||||
id = nip19.naddrEncode({
|
||||
identifier: (mention.tags.find((t: string[]) => t[0] === 'd') || [])[1],
|
||||
pubkey: mention.pubkey,
|
||||
kind: mention.kind,
|
||||
});
|
||||
}
|
||||
|
||||
updateStore('page', 'mentions',
|
||||
(mentions) => ({ ...mentions, [id]: { ...mention } })
|
||||
);
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user