mirror of
https://github.com/aljazceru/hypergolic.git
synced 2025-12-19 14:34:20 +01:00
problem: notes don't appear as replies
This commit is contained in:
@@ -34,22 +34,19 @@
|
|||||||
.then((x) => {
|
.then((x) => {
|
||||||
console.log(x);
|
console.log(x);
|
||||||
});
|
});
|
||||||
let content;
|
|
||||||
if (direction === 'ratify') {
|
if (direction === 'ratify') {
|
||||||
content = `I ratify 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():""}`;
|
||||||
} else {
|
prepareMeritNoteEvent({
|
||||||
content = `I reject your merit request: \n\n${merit.Problem()}`;
|
ndk,
|
||||||
|
author,
|
||||||
|
merit,
|
||||||
|
content
|
||||||
|
})
|
||||||
|
.publish()
|
||||||
|
.then((x) => {
|
||||||
|
console.log(x);
|
||||||
|
});
|
||||||
}
|
}
|
||||||
prepareMeritNoteEvent({
|
|
||||||
ndk,
|
|
||||||
author,
|
|
||||||
merit,
|
|
||||||
content
|
|
||||||
})
|
|
||||||
.publish()
|
|
||||||
.then((x) => {
|
|
||||||
console.log(x);
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
$: currentUserHasVotepower = false;
|
$: currentUserHasVotepower = false;
|
||||||
|
|||||||
@@ -349,7 +349,8 @@ export function prepareMeritNoteEvent(args: {
|
|||||||
}) {
|
}) {
|
||||||
const tags = [
|
const tags = [
|
||||||
['p', args.merit.Pubkey],
|
['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({
|
return prepareNostrEvent({
|
||||||
...args,
|
...args,
|
||||||
|
|||||||
Reference in New Issue
Block a user