mirror of
https://codeberg.org/grunfink/snac2.git
synced 2024-11-22 13:25:04 +00:00
mastoapi: minor tweaks.
This commit is contained in:
parent
1345409666
commit
be935b32c6
1 changed files with 7 additions and 1 deletions
|
@ -550,6 +550,9 @@ xs_dict *mastoapi_account(const xs_dict *actor)
|
|||
acct = xs_dict_append(acct, "created_at", date);
|
||||
}
|
||||
|
||||
xs *last_status_at = xs_str_utctime(0, "%Y-%m-%d");
|
||||
acct = xs_dict_append(acct, "last_status_at", last_status_at);
|
||||
|
||||
const char *note = xs_dict_get(actor, "summary");
|
||||
if (xs_is_null(note))
|
||||
note = "";
|
||||
|
@ -1000,7 +1003,10 @@ xs_dict *mastoapi_status(snac *snac, const xs_dict *msg)
|
|||
|
||||
st = xs_dict_append(st, "reblog", xs_stock(XSTYPE_NULL));
|
||||
st = xs_dict_append(st, "card", xs_stock(XSTYPE_NULL));
|
||||
st = xs_dict_append(st, "language", xs_stock(XSTYPE_NULL));
|
||||
st = xs_dict_append(st, "language", "en");
|
||||
|
||||
st = xs_dict_append(st, "filtered", xs_stock(XSTYPE_LIST));
|
||||
st = xs_dict_append(st, "muted", xs_stock(XSTYPE_FALSE));
|
||||
|
||||
tmp = xs_dict_get(msg, "sourceContent");
|
||||
if (xs_is_null(tmp))
|
||||
|
|
Loading…
Reference in a new issue