aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordefault <nobody@localhost>2024-11-24 08:03:51 +0100
committerdefault <nobody@localhost>2024-11-24 08:03:51 +0100
commit35b35ec3afff47be872004448e6ba81a6a339131 (patch)
tree0123c423963488443ca5942d4b68ed6ce7190797
parent36c3030231ed806c29c182e38cb0957993c835d1 (diff)
Return the 'manuallyApprovesFollowers' actor field according to user configuration.
-rw-r--r--activitypub.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/activitypub.c b/activitypub.c
index 8bcb6b0..649b1f2 100644
--- a/activitypub.c
+++ b/activitypub.c
@@ -1287,6 +1287,10 @@ xs_dict *msg_actor(snac *snac)
msg = xs_dict_set(msg, "alsoKnownAs", loaka);
}
+ const xs_val *manually = xs_dict_get(snac->config, "approve_followers");
+ msg = xs_dict_set(msg, "manuallyApprovesFollowers",
+ xs_stock(xs_is_true(manually) ? XSTYPE_TRUE : XSTYPE_FALSE));
+
return msg;
}