mirror of
https://codeberg.org/grunfink/snac2.git
synced 2024-11-26 06:53:37 +00:00
Fixed poll id in mastoapi.
This commit is contained in:
parent
c40ef367f9
commit
a3eb84b932
1 changed files with 1 additions and 1 deletions
|
@ -812,7 +812,7 @@ xs_dict *mastoapi_status(snac *snac, const xs_dict *msg)
|
||||||
int num_votes = 0;
|
int num_votes = 0;
|
||||||
xs *options = xs_list_new();
|
xs *options = xs_list_new();
|
||||||
|
|
||||||
poll = xs_dict_append(poll, "id", id);
|
poll = xs_dict_append(poll, "id", mid);
|
||||||
poll = xs_dict_append(poll, "expires_at", xs_dict_get(msg, "endTime"));
|
poll = xs_dict_append(poll, "expires_at", xs_dict_get(msg, "endTime"));
|
||||||
poll = xs_dict_append(poll, "expired", xs_dict_get(msg, "closed") != NULL ? t : f);
|
poll = xs_dict_append(poll, "expired", xs_dict_get(msg, "closed") != NULL ? t : f);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue