summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordefault <nobody@localhost>2023-12-03 09:24:02 +0100
committerdefault <nobody@localhost>2023-12-03 09:24:02 +0100
commit68b7947159aaf9c2a7ac324f60565422c109613f (patch)
treeb556d9e553d0367eb22dc1d1d5345cf59399b2fb
parent8b5c146c4061655368b558337c0964903985008d (diff)
mastoapi: return some dummy values in verify_credentials.
-rw-r--r--mastoapi.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/mastoapi.c b/mastoapi.c
index 9b0f32b..a233f5a 100644
--- a/mastoapi.c
+++ b/mastoapi.c
@@ -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;