Commit Graph

24 Commits

Author SHA1 Message Date
3624dd5c3c Reverting usage of RE2 (WIP):
**Breaking changes**

The livechat v13 introduced a new library to handle regular expressions in forbidden words, to avoid
[ReDOS](https://en.wikipedia.org/wiki/ReDoS) attacks.
Unfortunately, this library was not able to install itself properly on some systems, and some admins were not able
to install the livechat plugin.

That's why we have disabled this library in v14, and introduce a new settings to enable regexp in forbidden words.
By default this settings is disabled, and your users won't be able to use regexp in their forbidden words.

The risk by enabling this feature is that a malicious user could cause a denial of service for the chat bot, by using a
special crafted regular expression in their channel options, and sending a special crafter message in one of their
rooms. If you trust your users (those who have rights to livestream), you can enable the settings. Otherwise it is not
recommanded. See the documentation for more informations.

**Minor changes and fixes**

* Channel's forbidden words: new "enable" column.
* New settings to enable regular expressions for channel forbidden words.
* "Channel advanced configuration" settings: removing the "experimental feature" label.
2025-06-19 17:11:13 +02:00
80a5b76172 Updating SPDX headers. 2025-06-09 10:48:43 +02:00
e24385c3f1 Updating documentation + removing deprecated field description 2025-06-06 17:08:53 +02:00
1b8531a198 Fix: bot timer can't be negative or null. 2025-05-21 16:51:47 +02:00
6f479d26c5 Moving max and default values in constants. 2024-09-11 10:34:47 +02:00
5225257bb5 New option for the moderation bot: forbid duplicate messages (#516). 2024-09-11 10:34:44 +02:00
4b5f83c45f Updating dependencies. 2024-09-10 10:15:35 +02:00
c010758164 eslint 8.57 WIP:
* tweaking rules
* fixing issues
2024-09-09 18:47:21 +02:00
f15d3ed542 New option for the moderation bot:
* forbid messages with too many special characters (#517).
* update moderation bot to v0.4.0.
* refactoring localization segments to reuse existing one in multiple
  context.
* npm run doc:translate
2024-09-07 12:40:38 +02:00
91cddfa8d8 Emoji only mode WIP:
* Button to enable it on all rooms.
2024-09-06 11:53:07 +02:00
b673a49af6 Improved accessibility (#118):
* channel configuration: adding title to inputs.
* channel configuration: `aria-hidden="true"` on icons for add and
  remove row buttons.
2024-08-29 12:20:36 +02:00
ebc8fc8797 Option to hide moderator name who made actions WIP (#137). 2024-07-29 15:00:02 +02:00
7a54594967 Moderation delay WIP (#132):
* default channel value for moderation delay
2024-07-09 16:15:07 +02:00
934c07e34e Fix #449: Remove the constraint for custom emojis shortnames to have ":" at the beginning and at the end. 2024-06-25 17:12:46 +02:00
af04f70611 Terms&Conditions (#18) WIP:
* user documentation
* settings documentation
2024-06-25 12:21:02 +02:00
45a63eaecd Terms&Conditions (#18):
* new settings for instance's terms
* new channel option for channel's terms
2024-06-25 12:21:01 +02:00
5a455fff93 New option to only allow registered users to speak WIP (#233):
* Prosody mod_muc_peertubelivechat_roles module
* Fix ConverseJS to disable the message field when room is unmoderated
  and user is visitor
* Mute/voice anonymous users when changing room configuration.
* Display a specific message to muted anonymous users.
* Default value for mute_anonymous in channel options.
* Feature documentation
2024-06-21 11:37:06 +02:00
63d8e9789e Fix: resetting validationError on update. 2024-06-13 12:48:58 +02:00
591e0ad3fd Fix. 2024-06-13 10:57:34 +02:00
7cabf12864 Fix tags-input:
* the code handling `separators` was buggy, so i simplified to use only
  one separator
* was not practical for bot quotes (can't edit), so replaced by a
  textarea
2024-06-13 10:48:13 +02:00
8cc9061092 Fix lit linting. (some fix could be better...) 2024-06-12 19:13:35 +02:00
d4692c81e0 Fix lit linting, WIP. 2024-06-12 18:51:04 +02:00
be1e7456bd Fix action button. 2024-06-12 17:14:39 +02:00
4976a4f282 Refactoring: moving some template to separate files + classMap fix. 2024-06-12 17:14:39 +02:00