diff options
author | default <nobody@localhost> | 2024-04-27 08:02:47 +0200 |
---|---|---|
committer | default <nobody@localhost> | 2024-04-27 08:02:47 +0200 |
commit | be935b32c6a83de5ec39519bcb06e37edc373a2f (patch) | |
tree | 6a80e621a88a94503aa5a60a23a845c1ea677963 /mastoapi.c | |
parent | 1345409666f80bad0884dbee947fe4f558d06b1f (diff) |
mastoapi: minor tweaks.
Diffstat (limited to 'mastoapi.c')
-rw-r--r-- | mastoapi.c | 8 |
1 files changed, 7 insertions, 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)) |