diff options
| author | 2023-12-03 09:24:02 +0100 | |
|---|---|---|
| committer | 2023-12-03 09:24:02 +0100 | |
| commit | 68b7947159aaf9c2a7ac324f60565422c109613f (patch) | |
| tree | b556d9e553d0367eb22dc1d1d5345cf59399b2fb /mastoapi.c | |
| parent | A very minor HTML tweak. (diff) | |
| download | penes-snac2-68b7947159aaf9c2a7ac324f60565422c109613f.tar.gz penes-snac2-68b7947159aaf9c2a7ac324f60565422c109613f.tar.xz penes-snac2-68b7947159aaf9c2a7ac324f60565422c109613f.zip | |
mastoapi: return some dummy values in verify_credentials.
Diffstat (limited to 'mastoapi.c')
| -rw-r--r-- | mastoapi.c | 4 |
1 files changed, 4 insertions, 0 deletions
| @@ -1104,6 +1104,10 @@ int mastoapi_get_handler(const xs_dict *req, const char *q_path, | |||
| 1104 | acct = xs_dict_set(acct, "fields", fields); | 1104 | acct = xs_dict_set(acct, "fields", fields); |
| 1105 | } | 1105 | } |
| 1106 | 1106 | ||
| 1107 | acct = xs_dict_append(acct, "followers_count", xs_stock_0); | ||
| 1108 | acct = xs_dict_append(acct, "following_count", xs_stock_0); | ||
| 1109 | acct = xs_dict_append(acct, "statuses_count", xs_stock_0); | ||
| 1110 | |||
| 1107 | *body = xs_json_dumps(acct, 4); | 1111 | *body = xs_json_dumps(acct, 4); |
| 1108 | *ctype = "application/json"; | 1112 | *ctype = "application/json"; |
| 1109 | status = 200; | 1113 | status = 200; |