1292 Commits
Author SHA1 Message Date
Chocobozzz 235a47309b Update env variables 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 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 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
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
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
Muhammad Anas Khalid 31c9b9cd84 Fix dereferenceable error type links in REST API documentation (#7783) 2026-10-13 13:40:26 +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
m-altaifi 5456074749 Document how to reinstall a plugin during development
plugins install copies the plugin directory into the instance storage
(pnpm add file:), so rebuilding the source does not change what the
instance runs and re-running install reinstalls the same copy.

Point at plugins update --path and the required version bump, and link
the CLI tools guide from the plugin development section.
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
Sourav Sarkar 129b14a816 Enabled 2fa for LDAP users (#7773) 2026-10-13 10:57:07 +02:00
Chocobozzz 7b138ea077 Update nginx template
Reviewed by Sonnet 5 because nginx configuration is... hard.
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 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 fa856f7dc7 Add video files lifecycle management 2026-10-05 13:41:12 +02:00
Chocobozzz aeace7e4ca Add more supported files to object storage
actor images, thumbnails, storyboards, torrents and uploads
2026-10-05 13:41:12 +02:00
Chocobozzz f66d5c5f2a Update nginx template with new secondary routes 2026-10-05 13:39:50 +02:00
Chocobozzz 04f6d2550a Generate account and channel keys concurrently
Bump UV_THREADPOOL_SIZE in the systemd templates, since password hashing
happens in libuv thread pool
2026-10-05 13:39:50 +02:00
Chocobozzz 5399a2ede8 Update nginx template to support horizontal scaling
This commit is part of bigger work to add horizontal scaling support to
PeerTube.
2026-10-05 13:39:50 +02:00
Chocobozzz 3d0992d8bb Add systemd template to run a secondary process
This commit is part of bigger work to add horizontal scaling support to
PeerTube.
2026-10-05 13:39:50 +02:00
Chocobozzz 3e14cd584d Merge branch 'release/v8.3.x' into develop 2026-10-05 13:35:13 +02:00
Chocobozzz 8a8b57bebb Fix studio on only intro/outro/cut task 2026-09-22 16:11:10 +02:00
Chocobozzz faa76bad2c Fix missing ; in sql command 2026-09-16 13:59:57 +02:00
Chocobozzz d965742453 Add doc about plugin auto tags 2026-09-15 15:36:44 +02:00
Chocobozzz 184d8ee5ff Update openapi version 2026-09-15 15:22:42 +02:00
Chocobozzz 1b28c127e1 Add missing env mapping 2026-08-20 17:23:26 +02:00
Chocobozzz fba810b205 Add ability to run auto tags async 2026-08-20 17:18:38 +02:00
Chocobozzz b332c473c3 Add setting to enable tagging requests 2026-08-18 10:53:13 +02:00
Sourav SarkarandChocobozzz 2e08a14cb9 Feature/dynamic channel stats (#7750)
* daily/weekly/quaterly/yearly/all time channel view count added

* added test cases to suite

* test-lint issue fix

* PR polishing

* Improve alignment

* SQL query simplification

* Fix x axis alignment

---------

Co-authored-by: Chocobozzz <[email protected]>
2026-08-18 09:35:30 +02:00
Chocobozzz 1b99282aed Limit the number of replies when fetching a thread
Introduce a new endpoint `/api/v1/videos/{id}/comments/{commentId}/replies` to load more replies of a specific comment
Introduce new server hooks for this endpoint: `filter:api.video-comment-replies.list.params` and `filter:api.video-comment-replies.list.result`
Introduce new client hooks when loading more comment replies: `filter:api.video-watch.video-comment-replies.list.params` and `filter:api.video-watch.video-comment-replies.list.result`

A modal is displayed when comment depth is too high, to prevent width
overflow
2026-08-14 16:36:38 +02:00
Chocobozzz af0c8a47da Check on abuse report on server too 2026-08-13 09:39:26 +02:00
Chocobozzz a1b60d7403 Add ability to retry a cancelled import 2026-08-12 14:39:26 +02:00
Chocobozzz 1bd9990013 Add state filter on imports 2026-08-12 14:19:27 +02:00
Chocobozzz 740384889c Support req.cookies for onLogout plugin helpers 2026-08-07 15:55:02 +02:00
9e2eaf13ad Improve video searchability by allowing to search through descriptions (#7612)
* feat: use PostgreSQL FTS for video search instead of trigram

Add a videoSearch table with tsvector column and GIN index to store
search vectors for video titles and descriptions. Titles are weighted
higher than descriptions via setweight (A/B).

Trigram search is kept as a fallback to handle typos.

A migration script (server/scripts/migrations/peertube-8.2.ts) is
provided to backfill existing videos.

See #7386

* fix: add missing VideoSearchModel

search indexes did not appear in the database when migrating

* Improve FTS

* Requires PG >= 14

---------

Co-authored-by: oliwierjaszczyszyn <h@h>
Co-authored-by: Chocobozzz <[email protected]>
2026-08-06 15:26:41 +02:00
Chocobozzz 2b6b99d2ce Add dedicated rate limiters for tokens checker 2026-07-20 15:29:41 +02:00
Chocobozzz d9c2fc1fc0 Add plugin helper to update a video 2026-07-17 15:30:27 +02:00
Chocobozzz 962acec26f Add ability for plugins to send emails 2026-07-17 10:05:24 +02:00
Chocobozzz 3a31da20c5 Remove update embed privacy
I don't see lot of cases where the owner of the video would want to
quickly change the settings here
2026-07-16 11:45:14 +02:00
DefendiandChocobozzz e78b51d760 Add ability to disable video embed (#7716)
* feat(disable-video-embed): add ability to disable video embed
Add DISABLED value to the embed privacy policy enum, allowing owners
to fully block embedding instead of only restricting it to allowed domains.

* Styling

* Update doc

---------

Co-authored-by: Chocobozzz <[email protected]>
2026-07-16 11:25:26 +02:00