commit bcc2eb6

default  ·  2023-05-30 13:01:45 +0000 UTC
parent f2a91d8
Show the finished poll notification correctly in mastoapi.
1 files changed,  +4, -0
+4, -0
 1@@ -1253,6 +1253,7 @@ int mastoapi_get_handler(const xs_dict *req, const char *q_path,
 2                     continue;
 3 
 4                 const char *type  = xs_dict_get(noti, "type");
 5+                const char *utype = xs_dict_get(noti, "utype");
 6                 const char *objid = xs_dict_get(noti, "objid");
 7                 xs *actor = NULL;
 8                 xs *entry = NULL;
 9@@ -1278,6 +1279,9 @@ int mastoapi_get_handler(const xs_dict *req, const char *q_path,
10                 else
11                 if (strcmp(type, "Create") == 0)
12                     type = "mention";
13+                else
14+                if (strcmp(type, "Update") == 0 && strcmp(utype, "Question") == 0)
15+                    type = "poll";
16                 else
17                     continue;
18