Fixed poll id in mastoapi.

This commit is contained in:
default 2023-05-31 10:57:06 +02:00
parent c40ef367f9
commit a3eb84b932

View File

@ -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);