Option to hide moderator name who made actions WIP (#137).
This commit is contained in:
@ -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" };
|
||||
|
Reference in New Issue
Block a user