4929 Commits
Author SHA1 Message Date
Chocobozzz fbafb574ea Update translations 2026-10-28 11:26:59 +01:00
Eder Etxebarria 5d1eaec43d Translated using Weblate (Basque)
Currently translated at 100.0% (413 of 413 strings)

Translation: PeerTube/server-internal
Translate-URL: https://weblate.framasoft.org/projects/peertube/server-internal/eu/
2026-10-28 11:11:50 +01:00
Eder Etxebarria 0cd6d4c72c Translated using Weblate (Basque)
Currently translated at 100.0% (413 of 413 strings)

Translation: PeerTube/server-internal
Translate-URL: https://weblate.framasoft.org/projects/peertube/server-internal/eu/
2026-10-28 11:11:50 +01:00
Chocobozzz 5a50e33d81 Optimize CI 2026-10-28 11:11:36 +01:00
ImmaeandChocobozzz 4fd6af36e4 Recommendations policy (#7633)
* Filter recommendation policy

This commit adds a new option attached to a video, that allows to chose
which kind of recommendation will appear below it in the viewer.
It currently allows four setups:
- Any video (same as currently)
- Local videos only
- Owner videos only
- Same channel videos only

This allows the user who owns the video to restrict the recommendations
associated to his videos.

* Remove old recommendation strategy endpoints

* Add tests

Tests for the recommendation feature

* Add a stateless /api/v1/recommendations/videos route

The route accepts a strategy and (optionnally) video ID as query params,
and returns a list of recommentations associated to the video and
matching the strategy

* Add stateless recommendation endpoint: client part

* Add an admin-configurable default strategy

* Add Federation recommendation strategy information

* User import/export settings

* Translate changes to French

* Use scope instead of strategy for recommendations

---------

Co-authored-by: Chocobozzz <[email protected]>
2026-10-28 08:41:59 +01:00
Chocobozzz 28a28cb030 Improve SEO 2026-10-27 16:01:04 +01:00
Chocobozzz 57b5e4110f Add secondaries information to debug endpoint 2026-10-27 13:16:06 +01:00
Chocobozzz 0108fcb93f Store audit logs in database
Allow to centralize audit logs, even if horizontal scalability is
enabled
2026-10-27 11:16:03 +01:00
Chocobozzz ad17731e3f More robust SSRF protection 2026-10-27 11:15:49 +01:00
Chocobozzz 29932101f1 Crawling rates optimization 2026-10-26 16:53:18 +01:00
Chocobozzz e51ba6976f Fix podcast:medium 2026-10-26 16:53:08 +01:00
Chocobozzz 5cd512cf0a Check AP redirected URLs 2026-10-26 16:53:08 +01:00
Chocobozzz 4d049a4897 Bump sharp and block not supported formats 2026-10-26 16:53:07 +01:00
baptiste-bcn f10baef284 Fix crash when remote video has no likes/dislikes collections 2026-10-26 10:50:09 +01:00
Chocobozzz 1e499b13d1 Update translations 2026-10-16 17:06:50 +02:00
Ricardo Simões cc1ed96571 Translated using Weblate (Portuguese (Portugal))
Currently translated at 100.0% (414 of 414 strings)

Translation: PeerTube/server-internal
Translate-URL: https://weblate.framasoft.org/projects/peertube/server-internal/pt_PT/
2026-10-16 15:48:42 +02:00
Leif-Jöran Olsson 4b057c30a7 Translated using Weblate (Swedish)
Currently translated at 100.0% (414 of 414 strings)

Translation: PeerTube/server-internal
Translate-URL: https://weblate.framasoft.org/projects/peertube/server-internal/sv/
2026-10-16 15:48:42 +02:00
Ricardo Simões 6a2323a4b7 Translated using Weblate (Portuguese (Portugal))
Currently translated at 100.0% (414 of 414 strings)

Translation: PeerTube/server-internal
Translate-URL: https://weblate.framasoft.org/projects/peertube/server-internal/pt_PT/
2026-10-16 15:48:42 +02:00
Chocobozzz f780e64289 Introduce postgresql secondaries support
Only for a few routes, that consumes postgresql CPU

Re-implement sequelize connection routing mechanism, to support:
 * Replica lag monitoring (to not select replicas that are too far
   behind the primary)
 * Be opt-in instead of opt-out (primary is used by default, a context
   must be marked to use replicas)
 * Handle "read-you-writes" mechanism (ensure that reads after writes
   see the latest data, using the user ID to track recent writes)
2026-10-16 13:47:57 +02:00
kontrollantenandChocobozzz 5a497906d7 feat(videos/browse): make it configurable to show scheduled lives (#7825)
* feat(videos/browse): make it configurable to show scheduled lives

closes #5235

* Consistency

---------

Co-authored-by: Chocobozzz <[email protected]>
2026-10-15 10:47:12 +02:00
Sourav SarkarandChocobozzz 172d446209 initial commit for filters (#7802)
* initial commit for filters

* lint fix

* lint update .5 -> 0.5

* Use same behaviour as user video language settings

* Reorganize content filters and settings

---------

Co-authored-by: Chocobozzz <[email protected]>
2026-10-15 10:30:07 +02:00
Chocobozzz 38ac38332b Add plugin helper to delete a user 2026-10-14 10:31:42 +02:00
Chocobozzz 327f669730 Keep channel sync order even on import retry 2026-10-14 09:17:16 +02:00
Daniel RamosandChocobozzz 341818e2ed Keep the 3D packing of videos that declare it in their container (#7816)
* Keep the 3D packing of videos that declare it in their container

A video with the packing declared in its container lost it in the web video and HLS files: the copy path writes an MP4 without it (seen with Matroska's StereoMode; the check reads the stream's stereo side data, so MP4's st3d box goes the same way), and libx264 only writes the frame packing SEI for the left eye first, as FFmpeg tells it "Inverted mode is not supported by x264".

Do not copy such a video, so that libx264 writes the SEI from the packing of the input, and when the right eye comes first put the left eye first with the stereo3d filter and give the packing to libx264 as frame-packing (the frames keep the inverted side data otherwise, and libx264 would drop the packing again).

Assisted-by: Claude Sonnet via Claude Code

* Handle rotation and move 3d to transcoding profile

---------

Co-authored-by: Chocobozzz <[email protected]>
2026-10-13 16:09:28 +02:00
9ff61e9f4e Display configured count_view_after in video stats views help (#7821)
* Display configured count_view_after in video stats views help

* Fix doc

---------

Co-authored-by: baptiste-bcn <[email protected]>
Co-authored-by: Chocobozzz <[email protected]>
2026-10-13 13:49:06 +02:00
Chocobozzz 4384b9fae6 Add isLocal filter to comments feeds 2026-10-13 12:01:52 +02:00
Thomas Citharel f9d1dc3318 feat: allow filtering comments feed on local videos
Add an `onLocalVideo` query parameter to the video comments feed to
only list comments made on local (or remote) videos.

Signed-off-by: Thomas Citharel <[email protected]>
2026-10-13 12:01:52 +02:00
Chocobozzz 6acc565b6f Fix broken local path update 2026-10-13 11:30:02 +02:00
AltaifiandChocobozzz e911c75b6b Add ability to disable audit logs (#7777)
* Add ability to disable audit logs

Add a `log.audit.enabled` configuration option, mirroring the existing
`log.rotation.enabled` shape.

The guard lives in `auditLoggerWrapper`, which every `create`/`update`/
`delete` audit call routes through, so the 13 `auditLoggerFactory`
consumers need no change.

Closes #2686

* Add sort option to channel miniature markup

* Styling

---------

Co-authored-by: Chocobozzz <[email protected]>
2026-10-13 11:11:34 +02:00
m-altaifi 4b6777c83d Add ability to customize the video redundancy timeout
Mirroring a big video could not take longer than 3 hours, and the HLS
download budget was taken from `import.videos.timeout`, so raising it to
let a mirror finish also changed video import behaviour.

Add `redundancy.videos.timeout`, feeding both the `video-redundancy` job
TTL and the HLS download budget, the same way `import.videos.timeout`
already feeds `video-import`.

Closes #5519
2026-10-13 11:00:48 +02:00
Sourav Sarkar 129b14a816 Enabled 2fa for LDAP users (#7773) 2026-10-13 10:57:07 +02:00
kontrollantenandChocobozzz 3d5b0f1148 feat: add support for plugins to disable account description (#7769)
* feat: add support for plugins to hide account description

closes #7768

* feat: add plugin selector to username description

* use myPluginSelector for selectors

* harmonize plugin selector names

* Fixes

---------

Co-authored-by: Chocobozzz <[email protected]>
2026-10-12 16:02:34 +02:00
Chocobozzz 4757d06d92 Fix CI 2026-10-12 10:39:08 +02:00
Chocobozzz d384412981 Fix sequelize transaction inconsistency 2026-10-12 09:59:06 +02:00
Chocobozzz 1e0a0fd953 Improve scalability with many requests 2026-10-06 16:23:10 +02:00
Chocobozzz 326e47c4cb Update translations 2026-10-05 14:02:07 +02:00
Ricardo Simões 7f414a3aaf Translated using Weblate (Portuguese (Portugal))
Currently translated at 100.0% (410 of 410 strings)

Translation: PeerTube/server-internal
Translate-URL: https://weblate.framasoft.org/projects/peertube/server-internal/pt_PT/
2026-10-05 13:51:20 +02:00
Leif-Jöran Olsson a660fac2f1 Translated using Weblate (Swedish)
Currently translated at 100.0% (410 of 410 strings)

Translation: PeerTube/server-internal
Translate-URL: https://weblate.framasoft.org/projects/peertube/server-internal/sv/
2026-10-05 13:51:19 +02:00
Chocobozzz c8fd3c94ea Fix migration script number 2026-10-05 13:50:35 +02:00
Chocobozzz 42cb7718bf Improve performance
Try to bypass Redis when we can to lower performance penalty of
horizontal scalability added recently
2026-10-05 13:43:08 +02:00
Chocobozzz 46cbbd487c Best effort for keeping order in AP
Lock objects when receiving activities, and use a global concurrency of
1 when sending them
2026-10-05 13:43:08 +02:00
Chocobozzz dbb44f0015 Add ability to specify remote tracker
To handle large amount of viewers using P2P
2026-10-05 13:43:05 +02:00
Chocobozzz 44f27cb2db Inbox processing support in secondaries
Also support redundancy in object storage
2026-10-05 13:42:44 +02:00
Chocobozzz 86bf7f4f42 Make secondary processes rely on object storage
Simplifications:
  * object_storage.enabled is now the only switch, and check at startup
    bucket connection
  * secondaries no longer adopt the storage directories of the primary

Add remote files caching in a dedicated bucket so secondaries can lazy
static serve them

Publish the youtube-dl cookies file through Redis to support it in
secondaries

Change nginx behaviour using an denylist to secondaries (instead of an
allowlist)
2026-10-05 13:42:42 +02:00
Chocobozzz ca9c9a313b Refactor redis subscription channels 2026-10-05 13:41:13 +02:00
Chocobozzz c75dba70cd Select which job queue to stop/resume 2026-10-05 13:41:13 +02:00
Chocobozzz 41effc40ce Stage heavy uploads in object storage
Required step so secondary can handle file upload endpoints and handle
controllers that manage files
2026-10-05 13:41:13 +02:00
Chocobozzz aa140860ef Support more endpoints to secondary
Use distributed locks and shared files manager so secondaries can handle
more endpoints
2026-10-05 13:41:13 +02:00
Chocobozzz d18b78dd43 Add more API write endpoints support to secondary 2026-10-05 13:41:13 +02:00
Chocobozzz 65cd6ce6cc Fix tests 2026-10-05 13:41:13 +02:00