aboutsummaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authordefault <nobody@localhost>2025-01-12 11:30:16 +0100
committerdefault <nobody@localhost>2025-01-12 11:30:16 +0100
commitf88a32dbe0805fceb3fb75b01de61616d7953f5e (patch)
tree81b0a28bb63cd79963a8bbf8d2852efb2d2ce383 /main.c
parent5d2a5f160adc0992178812bcaa72df9cd5f072a7 (diff)
mastoapi: fixed Events not being shown.
Diffstat (limited to 'main.c')
-rw-r--r--main.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/main.c b/main.c
index 83b73af..b4e7fa1 100644
--- a/main.c
+++ b/main.c
@@ -351,6 +351,22 @@ int main(int argc, char *argv[])
return 0;
}
+
+ if (strcmp(cmd, "assist") == 0) { /** **/
+ /* undocumented: experimental (do not use) */
+ xs *msg = msg_admiration(&snac, url, "Accept");
+
+ if (msg != NULL) {
+ enqueue_message(&snac, msg);
+
+ if (dbglevel) {
+ xs_json_dump(msg, 4, stdout);
+ }
+ }
+
+ return 0;
+ }
+
if (strcmp(cmd, "unboost") == 0) { /** **/
xs *msg = msg_repulsion(&snac, url, "Announce");