summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--mastoapi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mastoapi.c b/mastoapi.c
index f86778c..5e02cb9 100644
--- a/mastoapi.c
+++ b/mastoapi.c
@@ -812,7 +812,7 @@ xs_dict *mastoapi_status(snac *snac, const xs_dict *msg)
int num_votes = 0;
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, "expired", xs_dict_get(msg, "closed") != NULL ? t : f);