summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar default2023-05-31 10:57:06 +0200
committerGravatar default2023-05-31 10:57:06 +0200
commita3eb84b932656e24823e2b886ef8fcd9265ea806 (patch)
treeb734d220dce7153d127c297e480e31a47c3a3c46
parentUpdated RELEASE_NOTES. (diff)
downloadsnac2-a3eb84b932656e24823e2b886ef8fcd9265ea806.tar.gz
snac2-a3eb84b932656e24823e2b886ef8fcd9265ea806.tar.xz
snac2-a3eb84b932656e24823e2b886ef8fcd9265ea806.zip
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)
812 int num_votes = 0; 812 int num_votes = 0;
813 xs *options = xs_list_new(); 813 xs *options = xs_list_new();
814 814
815 poll = xs_dict_append(poll, "id", id); 815 poll = xs_dict_append(poll, "id", mid);
816 poll = xs_dict_append(poll, "expires_at", xs_dict_get(msg, "endTime")); 816 poll = xs_dict_append(poll, "expires_at", xs_dict_get(msg, "endTime"));
817 poll = xs_dict_append(poll, "expired", xs_dict_get(msg, "closed") != NULL ? t : f); 817 poll = xs_dict_append(poll, "expired", xs_dict_get(msg, "closed") != NULL ? t : f);
818 818