commit be935b3

default  ·  2024-04-27 06:02:47 +0000 UTC
parent 1345409
mastoapi: minor tweaks.
1 files changed,  +7, -1
+7, -1
 1@@ -550,6 +550,9 @@ xs_dict *mastoapi_account(const xs_dict *actor)
 2         acct = xs_dict_append(acct, "created_at", date);
 3     }
 4 
 5+    xs *last_status_at = xs_str_utctime(0, "%Y-%m-%d");
 6+    acct = xs_dict_append(acct, "last_status_at", last_status_at);
 7+
 8     const char *note = xs_dict_get(actor, "summary");
 9     if (xs_is_null(note))
10         note = "";
11@@ -1000,7 +1003,10 @@ xs_dict *mastoapi_status(snac *snac, const xs_dict *msg)
12 
13     st = xs_dict_append(st, "reblog",   xs_stock(XSTYPE_NULL));
14     st = xs_dict_append(st, "card",     xs_stock(XSTYPE_NULL));
15-    st = xs_dict_append(st, "language", xs_stock(XSTYPE_NULL));
16+    st = xs_dict_append(st, "language", "en");
17+
18+    st = xs_dict_append(st, "filtered", xs_stock(XSTYPE_LIST));
19+    st = xs_dict_append(st, "muted",    xs_stock(XSTYPE_FALSE));
20 
21     tmp = xs_dict_get(msg, "sourceContent");
22     if (xs_is_null(tmp))