diff options
| author | 2024-05-31 19:29:17 +0200 | |
|---|---|---|
| committer | 2024-05-31 19:29:17 +0200 | |
| commit | 21efd9cd9cd0b337c164597704010d47cb6424a9 (patch) | |
| tree | 05ff4ca62b8b12c8f40f6fd84bbe816dfdb09ea3 | |
| parent | Updated RELEASE_NOTES. (diff) | |
| download | snac2-21efd9cd9cd0b337c164597704010d47cb6424a9.tar.gz snac2-21efd9cd9cd0b337c164597704010d47cb6424a9.tar.xz snac2-21efd9cd9cd0b337c164597704010d47cb6424a9.zip | |
mastoapi: added an 'emojis' field to mastoapi_poll().
| -rw-r--r-- | mastoapi.c | 2 |
1 files changed, 2 insertions, 0 deletions
| @@ -763,6 +763,8 @@ xs_dict *mastoapi_poll(snac *snac, const xs_dict *msg) | |||
| 763 | xs *vc = xs_number_new(num_votes); | 763 | xs *vc = xs_number_new(num_votes); |
| 764 | poll = xs_dict_append(poll, "votes_count", vc); | 764 | poll = xs_dict_append(poll, "votes_count", vc); |
| 765 | 765 | ||
| 766 | poll = xs_dict_append(poll, "emojis", xs_stock(XSTYPE_LIST)); | ||
| 767 | |||
| 766 | poll = xs_dict_append(poll, "voted", | 768 | poll = xs_dict_append(poll, "voted", |
| 767 | (snac && was_question_voted(snac, xs_dict_get(msg, "id"))) ? | 769 | (snac && was_question_voted(snac, xs_dict_get(msg, "id"))) ? |
| 768 | xs_stock(XSTYPE_TRUE) : xs_stock(XSTYPE_FALSE)); | 770 | xs_stock(XSTYPE_TRUE) : xs_stock(XSTYPE_FALSE)); |