diff options
| author | grunfink <grunfink@comam.es> | 2025-04-27 17:16:39 +0200 |
|---|---|---|
| committer | grunfink <grunfink@comam.es> | 2025-04-27 17:16:39 +0200 |
| commit | 2a353d2ffdd7a6235a8f1a04ef62bde77141f159 (patch) | |
| tree | 0842938dfa49b00ac9c9e05a2f827f88f7247d52 | |
| parent | 34c8a535da20955bbe038c3f69af32e2926a5389 (diff) | |
Mastoapi: correctly communicate 'approve_followers'.
| -rw-r--r-- | mastoapi.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -1223,7 +1223,10 @@ void credentials_get(char **body, char **ctype, int *status, snac snac) acct = xs_dict_append(acct, "last_status_at", xs_dict_get(snac.config, "published")); acct = xs_dict_append(acct, "note", xs_dict_get(snac.config, "bio")); acct = xs_dict_append(acct, "url", snac.actor); - acct = xs_dict_append(acct, "locked", xs_stock(XSTYPE_FALSE)); + + acct = xs_dict_append(acct, "locked", + xs_stock(xs_is_true(xs_dict_get(snac.config, "approve_followers")) ? XSTYPE_TRUE : XSTYPE_FALSE)); + acct = xs_dict_append(acct, "bot", xs_stock(xs_is_true(bot) ? XSTYPE_TRUE : XSTYPE_FALSE)); acct = xs_dict_append(acct, "emojis", xs_stock(XSTYPE_LIST)); |