Commit Graph

358 Commits

Author SHA1 Message Date
b9b0eb41d9 New avatars set WIP:
* adding new avatars by David Revoy
* replacing old avatars to test

TODO: add a settings to choose between legacy and new avatars.
TODO: generate a bot avatar.
2024-02-08 18:49:49 +01:00
c008e84da7 Fix #295: Prosody: disabling message carbons for anonymous users.
Anonymous users can't use carbons, as they cannot connect with multiple
tabs on the same anonymous account.
So we disable carbons on the anonymous virtualhost, to improve
performances.

See here for some performances tests: https://github.com/JohnXLivingston/livechat-perf-test/tree/main/tests/50-anonymous-carbons
2024-02-01 15:20:52 +01:00
5d4bfceb73 Hidden force_default_hide_muc_participants query parameter, for testing
purpose.
2024-01-31 18:12:53 +01:00
5614987901 Fix self-signed certificates on ubuntu + v8.0.2:
* On some Ubuntu server, the self-signed certificates generation fails:
  * See [issue #268](https://github.com/JohnXLivingston/peertube-plugin-livechat/issues/268)
  * This prevents the bot to connect to the server
  * As a fallback, we directly call openssl to generate the certificates
2023-09-27 14:29:17 +02:00
353f2d03f3 Fix disabling bot 2023-09-26 14:37:56 +02: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
e2c85af001 Bot avatar:
* For now, only one avatar possible,
* uses mod_random_vcard_peertubelivechat,
* mod_random_vcard_peertubelivechat has a new option with the avatar
  list (instead of a hardcoded avatar number)
* Peertube lists available avatars files, and pass it to mod_random_vcard_peertubelivechat
2023-09-25 11:20:46 +02:00
d80cedfee5 Auto ban anonymous IP:
* New settings: "Ban anonymous user's IP when user is banned from a chatroom":
  * if enabled, every time a streamer bans an anonymous user, it will ban its IP on the chat server,
  * banned IPs are logged on disk, so server's admin can use them to feed fail2ban (for example),
  * option disabled by default, because could be used to create trapped-rooms on public servers
2023-09-22 18:17:54 +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
cc673bd3cb Refactoring. 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
e0c31f09aa Fix bot authentication. 2023-09-22 16:45:06 +02:00
de9de8e358 wip 2023-09-22 16:45:06 +02:00
8b9da417b3 Fix bot spawning, avoiding extra npm process. 2023-09-22 16:45:06 +02:00
437fa4c17b log level. 2023-09-22 16:45:06 +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
65fd49a81c Fix rebuild 2023-09-22 16:45:05 +02:00
55fa6c0623 Fix rebuild 2023-09-22 16:45:05 +02:00
59c0c0c89b removing unecessary await 2023-09-22 16:45:05 +02:00
260a25f411 Updating room-channel when prosody-room-type is changed 2023-09-22 16:45:05 +02:00
0e201d4e43 Fix muc domain 2023-09-22 16:45:05 +02:00
de243bdc01 Fix. 2023-09-22 16:45:05 +02:00
065b6f0ed3 Fix 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
28faad6bbe WIP: store and get relation between rooms and channels:
* fix rebuildData
* write data to disk
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
ea1c008ded Fix: readData must have an atomic part. 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
32b52adebb WIP: store and get relation between rooms and channels 2023-09-22 16:45:03 +02:00
1a1b246d45 refactoring. 2023-09-22 16:45:03 +02:00
d410d4e08e Settings to disable the bot and the advances channel configuration 2023-09-22 16:45:02 +02:00
5373fb1570 Renaming 'moderation' pages to 'configuration'. 2023-09-22 16:45:02 +02:00
d0ba7d017d External Components interface configuration:
You can now configure on which network interfaces Prosody will listen for external components.
2023-09-22 16:45:02 +02:00
7e89e430d0 Moderation configuration screen: store options. 2023-09-22 16:45:02 +02:00
0987a036a0 Moderation configuration screen: WIP. 2023-09-22 16:45:01 +02:00
cb6decfa84 Fix: only local channels. 2023-09-22 16:45:01 +02:00
a25c4822fa Moderation configuration screen: WIP. 2023-09-22 16:45:01 +02:00
02728bb38d Moderation configuration screen: WIP. 2023-09-22 16:45:01 +02:00
64668733c8 Code refactoring:
Splitting API code in several files.
2023-09-07 17:20:01 +02:00