Option to hide moderator name who made actions WIP (#137).

This commit is contained in:
John Livingston
2024-07-26 17:04:14 +02:00
parent 38f2b2af57
commit ebc8fc8797
13 changed files with 140 additions and 4 deletions

View File

@ -8,6 +8,7 @@
-- * "slow_mode_duration"
-- * "mute_anonymous"
-- * "moderation_delay"
-- * "anonymize_moderation_actions"
-- These options are introduced in the Peertube livechat plugin.
--
-- The "slow_mode_duration" comes with mod_muc_slow_mode.
@ -132,6 +133,9 @@ local function apply_config(room, settings)
-- (and thus we don't need to broadcast changes)
room._data.livechat_muc_terms = config.livechat_muc_terms;
end
if (type(config.anonymize_moderation_actions) == "boolean") then
room._data.anonymize_moderation_actions = config.anonymize_moderation_actions;
end
elseif config ~= nil then
module:log("error", "Invalid config returned from API for %s: %q", room.jid, config);
return nil, "format", { field = "config" };