snac2

Fork of https://codeberg.org/grunfink/snac2
git clone https://git.inz.fi/snac2
Log | Files | Refs | README | LICENSE

commit a3eb84b932656e24823e2b886ef8fcd9265ea806
parent c40ef367f98b143eccd747cc780bef356e82f575
Author: default <nobody@localhost>
Date:   Wed, 31 May 2023 10:57:06 +0200

Fixed poll id in mastoapi.

Diffstat:
Mmastoapi.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 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);