Added missing icon & fixed single reply no root.
This commit is contained in:
parent
239c9bfb62
commit
4f41be23cc
2 changed files with 7 additions and 4 deletions
10
js/core.js
10
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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue