192 Commits

Author SHA1 Message Date
3503a63a10 Merge branch 'main' of https://github.com/JohnXLivingston/peertube-plugin-livechat 2025-06-15 09:19:36 -04: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
a4bf37d534 Merge branch 'main' of https://github.com/JohnXLivingston/peertube-plugin-livechat 2024-12-03 17:03:42 -05:00
1b53a6ec2d Fix #300: prosody tweaking. 2024-09-17 10:34:11 +02:00
f0088671ea New features: announcements WIP (#518):
* prevent annoucement spoofing on backend.
2024-09-12 11:44:35 +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
c561851bb6 Fix a regression in OIDC handling. 2024-09-09 21:21:44 +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
08017ac2bb Emoji only mode WIP:
* refactoring + optimization
* migration
2024-09-06 11:01:48 +02:00
7e0cfee8f1 Merge branch 'main' of https://github.com/JohnXLivingston/peertube-plugin-livechat 2024-09-05 22:17:17 -04:00
5db4f46421 Emoji only mode WIP:
Fix emojis regexp. The RCPE2 library can't handle long regexp, so we
switch to Oniguruma.
2024-09-05 19:12:07 +02:00
1a75b30c50 Emoji only mode WIP 2024-09-05 18:28:54 +02:00
8e99199f29 New option to use and configure Prosody mod_firewall WIP (#97):
* new setting
* new configuration screen for Peertube admins
* include the mod_firewall module
* load mod_firewall if enabled
* sys admin can disable the firewall config editing by creating a
  special file on the disk
* user documentation
2024-08-13 10:35:47 +02:00
eb889711f5 fix invalid-avatar set 2024-08-05 19:32:57 -04:00
a4497739fa Search user messages WIP (#145) 2024-08-01 16:54:31 +02:00
ebc8fc8797 Option to hide moderator name who made actions WIP (#137). 2024-07-29 15:00:02 +02:00
c6c365abf0 Avatar set for anonymous users: new 'none' choice (that will fallback to Converse new colorized avatars). 2024-07-25 15:34:27 +02:00
e57d39c8ab Fix #481:
* Moderation bot was not able to connect when remote chat was disabled.
* Some cleaning in code generating Prosody configuration file.
* Bump version 10.3.3
2024-07-25 12:09:55 +02:00
2f98dfa538 Bad english corrections. 2024-07-10 11:55:54 +02:00
7a54594967 Moderation delay WIP (#132):
* default channel value for moderation delay
2024-07-09 16:15:07 +02:00
f870aa6cfb Moderation delay WIP (#132):
* mod_muc_moderation_delay, first shot.
2024-07-09 11:40:37 +02:00
14ffa90208 Poll WIP (#231):
* muted participants can't vote
* removed "Choice N" from button labels.
2024-07-05 11:23:30 +02:00
6dda0cc44f Poll WIP (#231):
* refactoring update messages, for a more efficient and proper way to
  handle it
2024-07-05 11:23:30 +02:00
6f7c5c50f7 Poll WIP (#231):
* frontend message localization
2024-07-05 11:23:29 +02:00
4168b2ce41 Poll WIP (#231):
* various fix and improvements
2024-07-05 11:23:28 +02:00
b792588364 Poll WIP (#231):
* mod_muc_poll
* feature detection and create poll button in Converse
2024-07-05 11:23:21 +02:00
a06ef00e2a Terms&Conditions (#18) WIP:
* channel terms
2024-06-25 12:21:01 +02:00
b110456029 Terms&Conditions (#18) WIP:
* Converse module to display terms.
* Prosody module to send 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
257fdbd2c2 Authentication token generation (#98):
* setting to disable the feature (aka "panic button")
2024-06-17 15:25:02 +02:00
6bb29d79f8 Authentication token generation WIP (#98)
* fix stored data format
* implement user_exists and check_password
2024-06-17 12:44:26 +02:00
90afdafbd9 Authentication token generation WIP (#98)
You can now generate links to join chatrooms with your current user. This can be used to create Docks in OBS for example. This could also be used to generate authentication token to join the chat from 3rd party tools.
2024-06-17 11:43:59 +02:00
7312297e25 Missing SPDX. 2024-06-12 10:53:14 +02:00
ad27a76fab Deregister prosodyctl interval callback when spawn.stdin disappears
To avoid running into "write EPIPE" errors.
2024-06-11 22:45:00 +02:00
2c81d9a052 lint update 2024-05-28 13:43:07 +02:00
5a14e3f755 New setting to listen C2S connection on non-localhost interfaces (#377). 2024-05-27 16:32:40 +02:00
d5c327565c Adding SPDX headers (WIP) 2024-05-23 11:42:14 +02:00
5745e8c8a3 Changing defaults MUC affiliation (#385):
* video/channel owner is MUC owner
* the bot is MUC owner
* the bot is admin on the MUC component
* Peertube moderators/admins have no more special access (by default)
* migration script to update all existing rooms
2024-05-17 11:47:37 +02:00
7608f7c14b Task lists WIP:
* first shot for the pubsub module that will handle tasks.
2024-05-13 10:52:32 +02:00
024186ba2c Adding some standard OpenID Connect providers (Google, Facebook) (WIP):
* refactoring, to allow several OIDC singletons
* settings for google and facebook
* backend code
2024-04-22 13:03:31 +02:00
ce2d8ed123 Possibility to configure an OpenID Connect provider on the instance level WIP (#128)
Pruning external users periodically.
2024-04-19 09:58:36 +02:00
8a65f447c8 Possibility to configure an OpenID Connect provider on the instance level WIP (#128)
Get avatar from remote service.
2024-04-19 09:58:35 +02:00
3efbfbc12b Possibility to configure an OpenID Connect provider on the instance
level WIP (#128)

Fix chat federation.
2024-04-19 09:58:35 +02:00
3a5f27e751 Possibility to configure an OpenID Connect provider on the instance level WIP (#128). 2024-04-19 09:58:33 +02: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
2115b352a4 Updating xmppjs-chat-box version. 2024-03-07 10:14:36 +01:00
f5b9ffe616 Temporary security fix for #332: rollback of v8.3.1:
* Setting video owner as room owner as side effects. Like leaking the instance moderator/admin list. And maybe others.
  * So we rollback this feature, waiting for a better way to allow room admins/moderators to change room settings.
  * As a consequence, users that are not Peertube moderator/administrator can't change the slow mode configuration without deleting/recreating the room. This will be fixed in a later plugin version.
2024-03-01 15:25:29 +01:00
97b85be4ad Fix #322: "Sepia is no longer an owner of this groupchat" message when joining the chat.
* This was related to the fact that the bot was owner because of the "admins" Prosody config key, and not registered in the room.
* To fix it, i added the bot as owner when creating rooms.
* This means that the fix only work for newly created rooms.
* There might still be an issue in ConverseJS or Prosody, don't know exactly where.
2024-03-01 12:20:32 +01:00