diff options
author | default <nobody@localhost> | 2024-01-11 18:49:26 +0100 |
---|---|---|
committer | default <nobody@localhost> | 2024-01-11 18:49:26 +0100 |
commit | eaeb7764465414dd0e1bf5899d85dd0e67714899 (patch) | |
tree | c20c85079148556a1fbdcac7852423ca8fe0e5fe | |
parent | 285fb589ff1727e61144f17f77cf275c3a5905ce (diff) |
Set the 'bot' field in verify_credentials to the matching value.
-rw-r--r-- | mastoapi.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -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_static", ""); 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\"," "\"sensitive\":false,\"fields\":[],\"note\":\"\"}"); |