diff options
author | default <nobody@localhost> | 2023-05-30 15:01:45 +0200 |
---|---|---|
committer | default <nobody@localhost> | 2023-05-30 15:01:45 +0200 |
commit | bcc2eb6234ec3a3dfc7bf9c6193c67fcdda4d3a2 (patch) | |
tree | 6ba1bfe8e2563a3374d81ae0c94b639196a9c1e0 /mastoapi.c | |
parent | f2a91d8d4802ae6c6c604af07b2ff98a2a3c2b4f (diff) |
Show the finished poll notification correctly in mastoapi.
Diffstat (limited to 'mastoapi.c')
-rw-r--r-- | mastoapi.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -1253,6 +1253,7 @@ int mastoapi_get_handler(const xs_dict *req, const char *q_path, continue; const char *type = xs_dict_get(noti, "type"); + const char *utype = xs_dict_get(noti, "utype"); const char *objid = xs_dict_get(noti, "objid"); xs *actor = NULL; xs *entry = NULL; @@ -1279,6 +1280,9 @@ int mastoapi_get_handler(const xs_dict *req, const char *q_path, if (strcmp(type, "Create") == 0) type = "mention"; else + if (strcmp(type, "Update") == 0 && strcmp(utype, "Question") == 0) + type = "poll"; + else continue; /* excluded type? */ |