diff --git a/icon/event-details.svg b/icon/event-details.svg new file mode 100644 index 0000000..154f5e4 --- /dev/null +++ b/icon/event-details.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/js/core.js b/js/core.js index a9bd0cd..87f407b 100644 --- a/js/core.js +++ b/js/core.js @@ -147,10 +147,12 @@ async function send_post() { } function new_reply_tags(ev) { - return [ - ["e", ev.id, "", "reply"], - ["p", ev.pubkey], - ]; + const tags = [["e", ev.id, "", "reply"]]; + if (ev.refs.root) { + tags.push(["e", ev.refs.root, "", "root"]); + } + tags.push(["p", ev.pubkey]); + return tags; } async function create_reply(pubkey, content, ev, all=true) {