Răsfoiți Sursa

mastoapi: return some dummy values in verify_credentials.

default 2 ani în urmă
părinte
comite
68b7947159
1 a modificat fișierele cu 4 adăugiri și 0 ștergeri
  1. 4 0
      mastoapi.c

+ 4 - 0
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;