mirror of
https://codeberg.org/grunfink/snac2.git
synced 2024-11-22 05:15:04 +00:00
mastoapi: added an 'emojis' field to mastoapi_poll().
This commit is contained in:
parent
41b43e74d0
commit
21efd9cd9c
1 changed files with 2 additions and 0 deletions
|
@ -763,6 +763,8 @@ xs_dict *mastoapi_poll(snac *snac, const xs_dict *msg)
|
|||
xs *vc = xs_number_new(num_votes);
|
||||
poll = xs_dict_append(poll, "votes_count", vc);
|
||||
|
||||
poll = xs_dict_append(poll, "emojis", xs_stock(XSTYPE_LIST));
|
||||
|
||||
poll = xs_dict_append(poll, "voted",
|
||||
(snac && was_question_voted(snac, xs_dict_get(msg, "id"))) ?
|
||||
xs_stock(XSTYPE_TRUE) : xs_stock(XSTYPE_FALSE));
|
||||
|
|
Loading…
Reference in a new issue