Explorar o código

Set the 'bot' field in verify_credentials to the matching value.

default %!s(int64=2) %!d(string=hai) anos
pai
achega
eaeb776446
Modificáronse 1 ficheiros con 1 adicións e 2 borrados
  1. 1 2
      mastoapi.c

+ 1 - 2
mastoapi.c

@@ -1124,8 +1124,7 @@ int mastoapi_get_handler(const xs_dict *req, const char *q_path,
             acct = xs_dict_append(acct, "header",       "");
             acct = xs_dict_append(acct, "header",       "");
             acct = xs_dict_append(acct, "header_static", "");
             acct = xs_dict_append(acct, "header_static", "");
             acct = xs_dict_append(acct, "locked",       xs_stock_false);
             acct = xs_dict_append(acct, "locked",       xs_stock_false);
-            // FIXME: check value of "type" to set this correctly?
-            acct = xs_dict_append(acct, "bot",          xs_stock_false);
+            acct = xs_dict_append(acct, "bot",          xs_dict_get(snac1.config, "bot"));
 
 
             xs *src = xs_json_loads("{\"privacy\":\"public\","
             xs *src = xs_json_loads("{\"privacy\":\"public\","
                     "\"sensitive\":false,\"fields\":[],\"note\":\"\"}");
                     "\"sensitive\":false,\"fields\":[],\"note\":\"\"}");