summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar default2025-01-12 11:30:16 +0100
committerGravatar default2025-01-12 11:30:16 +0100
commitf88a32dbe0805fceb3fb75b01de61616d7953f5e (patch)
tree81b0a28bb63cd79963a8bbf8d2852efb2d2ce383
parentUpdated RELEASE_NOTES. (diff)
downloadsnac2-f88a32dbe0805fceb3fb75b01de61616d7953f5e.tar.gz
snac2-f88a32dbe0805fceb3fb75b01de61616d7953f5e.tar.xz
snac2-f88a32dbe0805fceb3fb75b01de61616d7953f5e.zip
mastoapi: fixed Events not being shown.
-rw-r--r--main.c16
-rw-r--r--mastoapi.c4
2 files changed, 18 insertions, 2 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[])
351 return 0; 351 return 0;
352 } 352 }
353 353
354
355 if (strcmp(cmd, "assist") == 0) { /** **/
356 /* undocumented: experimental (do not use) */
357 xs *msg = msg_admiration(&snac, url, "Accept");
358
359 if (msg != NULL) {
360 enqueue_message(&snac, msg);
361
362 if (dbglevel) {
363 xs_json_dump(msg, 4, stdout);
364 }
365 }
366
367 return 0;
368 }
369
354 if (strcmp(cmd, "unboost") == 0) { /** **/ 370 if (strcmp(cmd, "unboost") == 0) { /** **/
355 xs *msg = msg_repulsion(&snac, url, "Announce"); 371 xs *msg = msg_repulsion(&snac, url, "Announce");
356 372
diff --git a/mastoapi.c b/mastoapi.c
index 16065ec..21e2a78 100644
--- a/mastoapi.c
+++ b/mastoapi.c
@@ -1428,9 +1428,9 @@ xs_list *mastoapi_timeline(snac *user, const xs_dict *args, const char *index_fn
1428 continue; 1428 continue;
1429 } 1429 }
1430 1430
1431 /* if it has a name and it's not a Page or a Video, 1431 /* if it has a name and it's not an object that may have one,
1432 it's a poll vote, so discard it */ 1432 it's a poll vote, so discard it */
1433 if (!xs_is_null(xs_dict_get(msg, "name")) && !xs_match(type, "Page|Video")) 1433 if (!xs_is_null(xs_dict_get(msg, "name")) && !xs_match(type, "Page|Video|Audio|Event"))
1434 continue; 1434 continue;
1435 1435
1436 /* convert the Note into a Mastodon status */ 1436 /* convert the Note into a Mastodon status */