commit 21efd9c

default  ·  2024-05-31 17:29:17 +0000 UTC
parent 41b43e7
mastoapi: added an 'emojis' field to mastoapi_poll().
1 files changed,  +2, -0
+2, -0
1@@ -763,6 +763,8 @@ xs_dict *mastoapi_poll(snac *snac, const xs_dict *msg)
2     xs *vc = xs_number_new(num_votes);
3     poll = xs_dict_append(poll, "votes_count", vc);
4 
5+    poll = xs_dict_append(poll, "emojis", xs_stock(XSTYPE_LIST));
6+
7     poll = xs_dict_append(poll, "voted",
8             (snac && was_question_voted(snac, xs_dict_get(msg, "id"))) ?
9                 xs_stock(XSTYPE_TRUE) : xs_stock(XSTYPE_FALSE));