Commit Graph

67 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
bb992e29a6 Fix linting according to new rules, and disable buggy rules. 2024-10-08 17:23:18 +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
944bdcebb7 Improved accessibility (#118):
* aria-hidden on the channel avatar in the `p/livechat/configuration`
  page.
2024-08-29 11:28:58 +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
1be95f01b1 Fix: clicking on the import custom emojis button, without selected any file, was resulting in a state with all action button disabled. 2024-06-20 14:39:15 +02:00
48905dd70d Fix #437: removing last line if empty when importing emojis. 2024-06-20 11:45:36 +02:00
83dd3130a1 Fix #436: Saving emojis per batch, to avoid hitting max payload limit. 2024-06-20 11:14:00 +02:00
2739bb823a Logger: improving the logger, and using it in client code. 2024-06-14 15:17:14 +02:00
4851e35fba Fix lit class attribute. 2024-06-14 10:45:36 +02:00
a1eada96e8 Channel emojis: adding an empty line by default. 2024-06-13 15:10:12 +02:00
8dede18070 Fix notifier messages/titles. 2024-06-13 15:01:31 +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
2c3739f633 Refactoring: simplifing the peertube context. 2024-06-12 17:14:38 +02:00
268c60d699 Refactoring. 2024-06-12 17:14:38 +02:00
72c4b0804d Better UI for channel configuration pages. 2024-06-12 17:14:38 +02:00
e811c549fd Fix checkbox. 2024-06-12 17:14:38 +02:00
2668e5174c Dynamic table description: always displayed, in a separate line. 2024-06-12 17:14:37 +02:00
597afc8ba6 New page loading and error cases:
* adding new custom elements: spinner and error
* using them on async tasks
2024-06-12 17:14:37 +02:00
75ac7a1052 Various improvements:
* CSS cleaning
* disabling buttons during loading
* reset buttons on forms
2024-06-12 17:14:37 +02:00
2da97245ae Fix orphan opening div. 2024-06-12 17:14:36 +02:00
6f56a026bb Custom emojis: import/export functions. 2024-06-10 19:17:49 +02:00
92cf83dcdf Custom channel emoticons WIP (#130): fix CSS 2024-06-07 14:08:35 +02:00
47b580d132 Custom channel emoticons WIP (#130) 2024-06-07 13:45:07 +02:00
1b9ecea443 Custom channel emoticons WIP (#130): tabs 2024-06-07 13:45:07 +02:00
92e9d6d1af Custom channel emoticons WIP (#130) 2024-06-07 13:45:05 +02:00
5c87eef915 Custom channel emoticons WIP (#130) + various fix/refactoring 2024-06-07 13:45:05 +02:00
04403225fb Custom channel emoticons WIP (#130) + various fix 2024-06-07 13:45:04 +02:00
688ab4f029 Custom channel emoticons WIP (#130) 2024-06-07 13:45:04 +02:00
607a71b8cb Fix help buttons. 2024-06-07 13:45:04 +02:00