From 68b7947159aaf9c2a7ac324f60565422c109613f Mon Sep 17 00:00:00 2001 From: default Date: Sun, 3 Dec 2023 09:24:02 +0100 Subject: [PATCH] mastoapi: return some dummy values in verify_credentials. --- mastoapi.c | 4 ++++ 1 file changed, 4 insertions(+) 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;