aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/nostr.ts9
1 files changed, 5 insertions, 4 deletions
diff --git a/lib/nostr.ts b/lib/nostr.ts
index 7c3a405d..74992bb5 100644
--- a/lib/nostr.ts
+++ b/lib/nostr.ts
@@ -321,16 +321,17 @@ r.on("event", async (sub, ev) => {
let rev: UnsignedEvent = {
created_at: Math.floor(Date.now() / 1000),
- kind: 24195,
- pubkey,
+ kind: 23195,
+ pubkey: hex.encode(COINOS_PUBKEY),
tags: [
- ["p", COINOS_PUBKEY],
+ ["p", pubkey],
["e", ev.id],
],
content,
};
- r.send(["EVENT", await finalizeEvent(rev, sk)]);
+ rev = await finalizeEvent(rev, sk);
+ r.send(["EVENT", rev]);
}
} catch (e) {
console.log("problem with nwc", e);