commit 2a353d2

grunfink  ·  2025-04-27 15:16:39 +0000 UTC
parent 34c8a53
Mastoapi: correctly communicate 'approve_followers'.
1 files changed,  +4, -1
+4, -1
 1@@ -1223,7 +1223,10 @@ void credentials_get(char **body, char **ctype, int *status, snac snac)
 2     acct = xs_dict_append(acct, "last_status_at", xs_dict_get(snac.config, "published"));
 3     acct = xs_dict_append(acct, "note", xs_dict_get(snac.config, "bio"));
 4     acct = xs_dict_append(acct, "url", snac.actor);
 5-    acct = xs_dict_append(acct, "locked", xs_stock(XSTYPE_FALSE));
 6+
 7+    acct = xs_dict_append(acct, "locked",
 8+        xs_stock(xs_is_true(xs_dict_get(snac.config, "approve_followers")) ? XSTYPE_TRUE : XSTYPE_FALSE));
 9+
10     acct = xs_dict_append(acct, "bot", xs_stock(xs_is_true(bot) ? XSTYPE_TRUE : XSTYPE_FALSE));
11     acct = xs_dict_append(acct, "emojis", xs_stock(XSTYPE_LIST));
12