From ab786760a16c07031fa9b7e8987ebe755a57912c Mon Sep 17 00:00:00 2001 From: polwex Date: Wed, 12 Nov 2025 10:32:46 +0700 Subject: further fixes to engagement flow --- gui/src/logic/requests/nostrill.ts | 25 +++++++++++-------------- 1 file changed, 11 insertions(+), 14 deletions(-) (limited to 'gui/src/logic/requests') diff --git a/gui/src/logic/requests/nostrill.ts b/gui/src/logic/requests/nostrill.ts index e35b939..81f0bb1 100644 --- a/gui/src/logic/requests/nostrill.ts +++ b/gui/src/logic/requests/nostrill.ts @@ -108,7 +108,7 @@ export default class IO { return this.poke({ post: json }); } async addRP(pid: PID) { - const json = { quote: { host: pid.ship, id: pid.id } }; + const json = { rp: { host: pid.ship, id: pid.id } }; return this.poke({ post: json }); } @@ -122,29 +122,26 @@ export default class IO { // return this.poke(json); // } - async deletePost(id: string) { - const host = `~${this.airlock.ship}`; + async deletePost(host: Ship, id: string) { const json = { - "del-post": { - ship: host, - id: id, + del: { + host, + id, }, }; - return this.poke(json); + return this.poke({ post: json }); } async addReact(ship: Ship, id: PostID, reaction: string) { const json = { - "new-react": { - react: reaction, - pid: { - id: id, - ship: ship, - }, + reaction: { + reaction: reaction, + id: id, + host: ship, }, }; - return this.poke(json); + return this.poke({ post: json }); } // follows -- cgit v1.2.3