commit 35b35ec
default
·
2024-11-24 07:03:51 +0000 UTC
parent 36c3030
Return the 'manuallyApprovesFollowers' actor field according to user configuration.
1 files changed,
+4,
-0
+4,
-0
1@@ -1287,6 +1287,10 @@ xs_dict *msg_actor(snac *snac)
2 msg = xs_dict_set(msg, "alsoKnownAs", loaka);
3 }
4
5+ const xs_val *manually = xs_dict_get(snac->config, "approve_followers");
6+ msg = xs_dict_set(msg, "manuallyApprovesFollowers",
7+ xs_stock(xs_is_true(manually) ? XSTYPE_TRUE : XSTYPE_FALSE));
8+
9 return msg;
10 }
11