Commit Graph

46 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
0be11fb2ae Security Fix: mitigate ReDOS attacks on the chat bot. 2025-06-06 16:41:22 +02:00
4c84146cff Replace v11.1.0 by v12.0.0:
There will probably be some breaking changes, so renaming v11.1.0 to
v12.0.0.
Also fixing a typo in a filename.
2024-09-11 10:34: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
c010758164 eslint 8.57 WIP:
* tweaking rules
* fixing issues
2024-09-09 18:47:21 +02:00
7b3d93b290 Typescript v5 + eslint 8.57 WIP
This commit also improves some type handling in the project.
2024-09-09 15:57:04 +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
08017ac2bb Emoji only mode WIP:
* refactoring + optimization
* migration
2024-09-06 11:01:48 +02:00
1a75b30c50 Emoji only mode WIP 2024-09-05 18:28:54 +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
a06ef00e2a Terms&Conditions (#18) WIP:
* channel terms
2024-06-25 12:21:01 +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
893708d93a Custom channel emoticons WIP (#130) + Fix cleanup on channel deletion. 2024-06-07 13:45:05 +02:00
9ff4abfce4 added attempt at dynamic listing 2024-05-28 13:43:07 +02:00
d5c327565c Adding SPDX headers (WIP) 2024-05-23 11:42:14 +02:00
4afc6ec4c6 Slow mode (related to #385):
The slow mode duration on the channel option page is now a default value for new rooms. Streamers can change the value room per room in the room's configuration.
2024-05-17 15:32:31 +02:00
dea7ab783a Fix slow mode duration update on channel change. 2024-03-07 18:23:48 +01:00
de15b7d480 Slow mode duration:
* channel option is no more a default value, but the current value
* changing naming in accordance
* changing labels and documentation
2024-03-07 17:56:27 +01:00
e67b21dd9f Updating slow mode duration on existing rooms when changing channel options (related to #332). 2024-03-07 17:33:18 +01:00
4dd4f18965 Fix #87: updating chat room title when video/channel title is changed:
* renaming module list_rooms to manage_rooms
* added some API to update room info
* when a video or a channel is updated, sending an API call to update
  the room
2024-03-07 16:22:14 +01:00
3d9237624d Naming:
* changing delay by duration for slow mode options
* better labels
2024-02-16 17:35:55 +01:00
cf179d7f72 Slow mode WIP (#192):
* default delay is configurable in channel's chat rooms options.
2024-02-16 17:35:53 +01:00
6705cd9e3d Fix multiline. 2023-09-25 15:37:58 +02:00
b8aef07182 Forbidden words comment field. 2023-09-25 13:16:15 +02:00
06b9417650 Channel configuration UI: form validation. 2023-09-25 12:51:15 +02:00
562073fc09 Channel conf UI WIP 2023-09-22 16:45:09 +02:00
aa71a302f6 Channel Configuration UI WIP 2023-09-22 16:45:08 +02:00
eed88e9339 UI WIP. 2023-09-22 16:45:08 +02:00
f00bac5eb1 Channel configuration UI + disabling bannedJIDs (for now) 2023-09-22 16:45:07 +02:00
6c966f608b Stronger password. 2023-09-22 16:45:07 +02:00
852221d232 Moderation. 2023-09-22 16:45:07 +02:00
4fe972dc10 Configure bot name + refactoring. 2023-09-22 16:45:07 +02:00
9e7d9c6069 Bot must be admin on the MUC component. 2023-09-22 16:45:07 +02:00
2289d79c28 Various fix and wip 2023-09-22 16:45:06 +02:00
f97e54d499 Moderation Bot integration WIP:
* Start and stop the bot WIP
* Prosody: removing the BOSH module from the global scope (must only be present on relevant virtualhosts)
* Some refactoring
2023-09-22 16:45:06 +02:00
0e201d4e43 Fix muc domain 2023-09-22 16:45:05 +02:00
a8c71fbadf Store Bot configuration 2023-09-22 16:45:04 +02:00
35c9494ed7 Store bot configuration WIP 2023-09-22 16:45:04 +02:00
231ca3d177 Fix video updated action. 2023-09-22 16:45:04 +02:00
e4683cf282 WIP: store and get relation between rooms and channels:
* rebuildData
* handling video update (to check for channel changes)
2023-09-22 16:45:04 +02:00
c900d2d1d4 WIP: store and get relation between rooms and channels (refactoring) 2023-09-22 16:45:04 +02:00
5373fb1570 Renaming 'moderation' pages to 'configuration'. 2023-09-22 16:45:02 +02:00