summaryrefslogtreecommitdiff
path: root/mastoapi.c
diff options
context:
space:
mode:
Diffstat (limited to 'mastoapi.c')
-rw-r--r--mastoapi.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/mastoapi.c b/mastoapi.c
index feeb06f..0155a7c 100644
--- a/mastoapi.c
+++ b/mastoapi.c
@@ -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? */