From ebc8fc8797b8310f23d06d650b2e29b35874bbc8 Mon Sep 17 00:00:00 2001 From: John Livingston Date: Fri, 26 Jul 2024 17:04:14 +0200 Subject: [PATCH] Option to hide moderator name who made actions WIP (#137). --- CHANGELOG.md | 1 + client/@types/global.d.ts | 2 + .../templates/channel-configuration.ts | 28 +++++++++++- languages/en.yml | 5 +++ .../README.markdown | 32 ++++++++++++++ .../mod_muc_anonymize_moderation_actions.lua | 44 +++++++++++++++++++ .../mod_muc_http_defaults.lua | 4 ++ server/lib/configuration/channel/sanitize.ts | 4 +- server/lib/configuration/channel/storage.ts | 3 +- server/lib/prosody/config/content.ts | 3 ++ server/lib/routers/api/room.ts | 4 +- shared/lib/types.ts | 1 + .../user/streamers/moderation.md | 13 ++++++ 13 files changed, 140 insertions(+), 4 deletions(-) create mode 100644 prosody-modules/mod_muc_anonymize_moderation_actions/README.markdown create mode 100644 prosody-modules/mod_muc_anonymize_moderation_actions/mod_muc_anonymize_moderation_actions.lua diff --git a/CHANGELOG.md b/CHANGELOG.md index a0b629db..5da0a497 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,7 @@ * Updating ConverseJS, to use upstream (v11 WIP). This comes with many improvments and new features. * #146: copy message button for moderators. +* #137: option to hide moderator name who made actions (kick, ban, message moderation, ...). ### Minor changes and fixes diff --git a/client/@types/global.d.ts b/client/@types/global.d.ts index ecc2d9be..dcdde332 100644 --- a/client/@types/global.d.ts +++ b/client/@types/global.d.ts @@ -133,3 +133,5 @@ declare const LOC_POLL_VOTE_OK: string declare const LOC_MODERATION_DELAY: string declare const LOC_LIVECHAT_CONFIGURATION_CHANNEL_MODERATION_DELAY_DESC: string +declare const LOC_LIVECHAT_CONFIGURATION_CHANNEL_ANONYMIZE_MODERATION_LABEL: string +declare const LOC_LIVECHAT_CONFIGURATION_CHANNEL_ANONYMIZE_MODERATION_DESC: string diff --git a/client/common/configuration/elements/templates/channel-configuration.ts b/client/common/configuration/elements/templates/channel-configuration.ts index 69878f95..28187f31 100644 --- a/client/common/configuration/elements/templates/channel-configuration.ts +++ b/client/common/configuration/elements/templates/channel-configuration.ts @@ -167,7 +167,7 @@ export function tplChannelConfiguration (el: ChannelConfigurationElement): Templ