snac2

Fork of https://codeberg.org/grunfink/snac2
git clone https://git.inz.fi/snac2
Log | Files | Refs | README | LICENSE

commit 68b7947159aaf9c2a7ac324f60565422c109613f
parent 8b5c146c4061655368b558337c0964903985008d
Author: default <nobody@localhost>
Date:   Sun,  3 Dec 2023 09:24:02 +0100

mastoapi: return some dummy values in verify_credentials.

Diffstat:
Mmastoapi.c | 4++++
1 file changed, 4 insertions(+), 0 deletions(-)

diff --git 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;