problem: notes don't appear as replies

This commit is contained in:
gsovereignty
2024-07-30 12:14:24 +08:00
parent b4cbd320d6
commit c48d725fcd
2 changed files with 13 additions and 15 deletions

View File

@@ -34,22 +34,19 @@
.then((x) => {
console.log(x);
});
let content;
if (direction === 'ratify') {
content = `I ratify your merit request: \n\n${merit.Problem()}`;
} else {
content = `I reject your merit request: \n\n${merit.Problem()}`;
let content = `I've voted to ratify your merit request! ${merit.Problem()} \n\n ${merit.Solution()?merit.Solution():""}`;
prepareMeritNoteEvent({
ndk,
author,
merit,
content
})
.publish()
.then((x) => {
console.log(x);
});
}
prepareMeritNoteEvent({
ndk,
author,
merit,
content
})
.publish()
.then((x) => {
console.log(x);
});
}
$: currentUserHasVotepower = false;

View File

@@ -349,7 +349,8 @@ export function prepareMeritNoteEvent(args: {
}) {
const tags = [
['p', args.merit.Pubkey],
['e', args.merit.ID, 'root', args.merit.Pubkey]
['e', args.merit.ID, "wss://relay.nostrocket.org", 'reply'],
args.merit.RocketTag?['a', args.merit.RocketTag]:[],
];
return prepareNostrEvent({
...args,