mastoapi: return some dummy values in verify_credentials.

This commit is contained in:
default 2023-12-03 09:24:02 +01:00
parent 8b5c146c40
commit 68b7947159

View file

@ -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;