* 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]>
The thumbnail added as cover of audio only downloads was copied as is
in the MP4 container, which doesn't support webp images.
Convert the cover to JPEG instead.
Fixes#7806
The external-plugins suite is gated to run only on the schedule event
(test.yml), so it never executes on push/PR builds. But GitHub Actions
schedule triggers are evaluated from each repository's own default
branch — including forks. Any fork that enables the Test workflow (e.g.
to get CI on a feature branch) inherits this schedule trigger too, and
every such run hits this test, which hard-fails because AKISMET_KEY is
a repository secret that is never copied to forks.
Skip the suite instead of throwing when the key is missing, the same
way other environment-dependent tests in this codebase already do
(see packages/tests/src/server-helpers/ffmpeg-stereo3d.ts). The
upstream repo still runs the real Akismet checks every night since its
own secret is present; only environments without the key now report
the suite as skipped instead of failing the build.
Assisted-by: Claude Sonnet via Claude Code
The thumbnail added as cover of audio only downloads was copied as is
in the MP4 container, which doesn't support webp images.
Convert the cover to JPEG instead.
Fixes#7806
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)
* 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]>
* Constrain PyAV when installing whisper-ctranslate2
PyAV 19 (2026-09-29, Python 3.12+) removed the metadata_errors argument of
av.open(). faster-whisper 1.2.1, which whisper-ctranslate2 0.4.4 installs,
still passes it, so a freshly auto-installed engine fails every
transcription and no transcript file is written.
* Prefer upgrading to latest whisper ctranslate
---------
Co-authored-by: Chocobozzz <[email protected]>
* 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]>
* feat: add support for playlistId in peertube-videos-list element
closes#5391
* Throw on param conflict and hide nsfw videos
---------
Co-authored-by: Chocobozzz <[email protected]>
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]>
* 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]>
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)