summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordefault <nobody@localhost>2023-05-31 10:57:06 +0200
committerdefault <nobody@localhost>2023-05-31 10:57:06 +0200
commita3eb84b932656e24823e2b886ef8fcd9265ea806 (patch)
treeb734d220dce7153d127c297e480e31a47c3a3c46
parentc40ef367f98b143eccd747cc780bef356e82f575 (diff)
Fixed poll id in mastoapi.
-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);