mirror of
https://codeberg.org/grunfink/snac2.git
synced 2024-12-28 10:03:36 +00:00
Return the 'manuallyApprovesFollowers' actor field according to user configuration.
This commit is contained in:
parent
36c3030231
commit
35b35ec3af
1 changed files with 4 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue