diff options
| author | polwex <polwex@sortug.com> | 2025-11-12 10:32:46 +0700 |
|---|---|---|
| committer | polwex <polwex@sortug.com> | 2025-11-12 10:32:46 +0700 |
| commit | ab786760a16c07031fa9b7e8987ebe755a57912c (patch) | |
| tree | fae744eb25a196d8fe94a95be55c246ac3679545 /gui/src/logic/requests | |
| parent | 284ce9ce7d9f81e54e91f917329d48926487fbf4 (diff) | |
further fixes to engagement flow
Diffstat (limited to 'gui/src/logic/requests')
| -rw-r--r-- | gui/src/logic/requests/nostrill.ts | 25 |
1 files changed, 11 insertions, 14 deletions
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 |
