diff options
| author | 2024-11-24 08:03:51 +0100 | |
|---|---|---|
| committer | 2024-11-24 08:03:51 +0100 | |
| commit | 35b35ec3afff47be872004448e6ba81a6a339131 (patch) | |
| tree | 0123c423963488443ca5942d4b68ed6ce7190797 | |
| parent | In user_persist(), only publish the actor to the world if a relevant field ha... (diff) | |
| download | penes-snac2-35b35ec3afff47be872004448e6ba81a6a339131.tar.gz penes-snac2-35b35ec3afff47be872004448e6ba81a6a339131.tar.xz penes-snac2-35b35ec3afff47be872004448e6ba81a6a339131.zip | |
Return the 'manuallyApprovesFollowers' actor field according to user configuration.
| -rw-r--r-- | activitypub.c | 4 |
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) | |||
| 1287 | msg = xs_dict_set(msg, "alsoKnownAs", loaka); | 1287 | msg = xs_dict_set(msg, "alsoKnownAs", loaka); |
| 1288 | } | 1288 | } |
| 1289 | 1289 | ||
| 1290 | const xs_val *manually = xs_dict_get(snac->config, "approve_followers"); | ||
| 1291 | msg = xs_dict_set(msg, "manuallyApprovesFollowers", | ||
| 1292 | xs_stock(xs_is_true(manually) ? XSTYPE_TRUE : XSTYPE_FALSE)); | ||
| 1293 | |||
| 1290 | return msg; | 1294 | return msg; |
| 1291 | } | 1295 | } |
| 1292 | 1296 | ||