mirror of
https://codeberg.org/grunfink/snac2.git
synced 2024-11-26 06:53:37 +00:00
Show the finished poll notification correctly in mastoapi.
This commit is contained in:
parent
f2a91d8d48
commit
bcc2eb6234
1 changed files with 4 additions and 0 deletions
|
@ -1253,6 +1253,7 @@ int mastoapi_get_handler(const xs_dict *req, const char *q_path,
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
const char *type = xs_dict_get(noti, "type");
|
const char *type = xs_dict_get(noti, "type");
|
||||||
|
const char *utype = xs_dict_get(noti, "utype");
|
||||||
const char *objid = xs_dict_get(noti, "objid");
|
const char *objid = xs_dict_get(noti, "objid");
|
||||||
xs *actor = NULL;
|
xs *actor = NULL;
|
||||||
xs *entry = NULL;
|
xs *entry = NULL;
|
||||||
|
@ -1278,6 +1279,9 @@ int mastoapi_get_handler(const xs_dict *req, const char *q_path,
|
||||||
else
|
else
|
||||||
if (strcmp(type, "Create") == 0)
|
if (strcmp(type, "Create") == 0)
|
||||||
type = "mention";
|
type = "mention";
|
||||||
|
else
|
||||||
|
if (strcmp(type, "Update") == 0 && strcmp(utype, "Question") == 0)
|
||||||
|
type = "poll";
|
||||||
else
|
else
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue