commit eaeb776

default  ·  2024-01-11 17:49:26 +0000 UTC
parent 285fb58
Set the 'bot' field in verify_credentials to the matching value.
1 files changed,  +1, -2
+1, -2
 1@@ -1124,8 +1124,7 @@ int mastoapi_get_handler(const xs_dict *req, const char *q_path,
 2             acct = xs_dict_append(acct, "header",       "");
 3             acct = xs_dict_append(acct, "header_static", "");
 4             acct = xs_dict_append(acct, "locked",       xs_stock_false);
 5-            // FIXME: check value of "type" to set this correctly?
 6-            acct = xs_dict_append(acct, "bot",          xs_stock_false);
 7+            acct = xs_dict_append(acct, "bot",          xs_dict_get(snac1.config, "bot"));
 8 
 9             xs *src = xs_json_loads("{\"privacy\":\"public\","
10                     "\"sensitive\":false,\"fields\":[],\"note\":\"\"}");