commit 68b7947

default  ·  2023-12-03 08:24:02 +0000 UTC
parent 8b5c146
mastoapi: return some dummy values in verify_credentials.
1 files changed,  +4, -0
+4, -0
 1@@ -1104,6 +1104,10 @@ int mastoapi_get_handler(const xs_dict *req, const char *q_path,
 2                 acct = xs_dict_set(acct, "fields", fields);
 3             }
 4 
 5+            acct = xs_dict_append(acct, "followers_count", xs_stock_0);
 6+            acct = xs_dict_append(acct, "following_count", xs_stock_0);
 7+            acct = xs_dict_append(acct, "statuses_count", xs_stock_0);
 8+
 9             *body  = xs_json_dumps(acct, 4);
10             *ctype = "application/json";
11             status = 200;