diff options
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) | |||
| 550 | acct = xs_dict_append(acct, "created_at", date); | 550 | acct = xs_dict_append(acct, "created_at", date); |
| 551 | } | 551 | } |
| 552 | 552 | ||
| 553 | xs *last_status_at = xs_str_utctime(0, "%Y-%m-%d"); | ||
| 554 | acct = xs_dict_append(acct, "last_status_at", last_status_at); | ||
| 555 | |||
| 553 | const char *note = xs_dict_get(actor, "summary"); | 556 | const char *note = xs_dict_get(actor, "summary"); |
| 554 | if (xs_is_null(note)) | 557 | if (xs_is_null(note)) |
| 555 | note = ""; | 558 | note = ""; |
| @@ -1000,7 +1003,10 @@ xs_dict *mastoapi_status(snac *snac, const xs_dict *msg) | |||
| 1000 | 1003 | ||
| 1001 | st = xs_dict_append(st, "reblog", xs_stock(XSTYPE_NULL)); | 1004 | st = xs_dict_append(st, "reblog", xs_stock(XSTYPE_NULL)); |
| 1002 | st = xs_dict_append(st, "card", xs_stock(XSTYPE_NULL)); | 1005 | st = xs_dict_append(st, "card", xs_stock(XSTYPE_NULL)); |
| 1003 | st = xs_dict_append(st, "language", xs_stock(XSTYPE_NULL)); | 1006 | st = xs_dict_append(st, "language", "en"); |
| 1007 | |||
| 1008 | st = xs_dict_append(st, "filtered", xs_stock(XSTYPE_LIST)); | ||
| 1009 | st = xs_dict_append(st, "muted", xs_stock(XSTYPE_FALSE)); | ||
| 1004 | 1010 | ||
| 1005 | tmp = xs_dict_get(msg, "sourceContent"); | 1011 | tmp = xs_dict_get(msg, "sourceContent"); |
| 1006 | if (xs_is_null(tmp)) | 1012 | if (xs_is_null(tmp)) |