mirror of
https://codeberg.org/grunfink/snac2.git
synced 2024-11-09 11:40:27 +03:00
mastoapi: return some dummy values in verify_credentials.
This commit is contained in:
parent
8b5c146c40
commit
68b7947159
@ -1104,6 +1104,10 @@ int mastoapi_get_handler(const xs_dict *req, const char *q_path,
|
||||
acct = xs_dict_set(acct, "fields", fields);
|
||||
}
|
||||
|
||||
acct = xs_dict_append(acct, "followers_count", xs_stock_0);
|
||||
acct = xs_dict_append(acct, "following_count", xs_stock_0);
|
||||
acct = xs_dict_append(acct, "statuses_count", xs_stock_0);
|
||||
|
||||
*body = xs_json_dumps(acct, 4);
|
||||
*ctype = "application/json";
|
||||
status = 200;
|
||||
|
Loading…
Reference in New Issue
Block a user