Added some lost fields in mastoapi_status().

This commit is contained in:
default 2023-06-28 19:53:25 +02:00
parent 24ded09039
commit 15684721c3

View file

@ -840,7 +840,6 @@ xs_dict *mastoapi_status(snac *snac, const xs_dict *msg)
}
st = xs_dict_append(st, "reblog", xs_stock_null);
st = xs_dict_append(st, "poll", xs_stock_null);
st = xs_dict_append(st, "card", xs_stock_null);
st = xs_dict_append(st, "language", xs_stock_null);
@ -860,6 +859,11 @@ xs_dict *mastoapi_status(snac *snac, const xs_dict *msg)
xs *poll = mastoapi_poll(snac, msg);
st = xs_dict_append(st, "poll", poll);
}
else
st = xs_dict_append(st, "poll", xs_stock_null);
st = xs_dict_append(st, "bookmarked", xs_stock_false);
st = xs_dict_append(st, "pinned", xs_stock_false);
return st;
}