Added missing icon & fixed single reply no root.

This commit is contained in:
Thomas Mathews 2022-12-30 17:30:37 -08:00
parent 239c9bfb62
commit 4f41be23cc
2 changed files with 7 additions and 4 deletions

View file

@ -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) {