summaryrefslogtreecommitdiff
path: root/gui/src/logic/requests/nostrill.ts
diff options
context:
space:
mode:
authorpolwex <polwex@sortug.com>2025-11-12 10:32:46 +0700
committerpolwex <polwex@sortug.com>2025-11-12 10:32:46 +0700
commitab786760a16c07031fa9b7e8987ebe755a57912c (patch)
treefae744eb25a196d8fe94a95be55c246ac3679545 /gui/src/logic/requests/nostrill.ts
parent284ce9ce7d9f81e54e91f917329d48926487fbf4 (diff)
further fixes to engagement flow
Diffstat (limited to 'gui/src/logic/requests/nostrill.ts')
-rw-r--r--gui/src/logic/requests/nostrill.ts25
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