mirror of
https://github.com/aljazceru/hypergolic.git
synced 2025-12-18 14:04:21 +01:00
problem: notes don't appear as replies
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user