Files
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
..
2026-10-28 08:41:59 +01:00
2023-08-11 15:02:33 +02:00
2026-07-16 16:35:18 +02:00
2026-08-11 09:07:41 +02:00
2026-02-26 14:06:03 +01:00
2026-03-26 15:15:36 +01:00
2026-04-22 14:28:06 +02:00

PeerTube CLI

Usage

See https://docs.joinpeertube.org/maintain/tools#remote-tools

Dev

Install dependencies

cd peertube-root
npm run install-node-dependencies

Develop

cd peertube-root
npm run dev:peertube-cli

Build

cd peertube-root
npm run build:peertube-cli

Run

cd peertube-root
node apps/peertube-cli/dist/peertube.js --help

Publish on NPM

cd peertube-root
(cd apps/peertube-cli && npm version patch) && npm run build:peertube-cli && (cd apps/peertube-cli && npm login && npm publish --access=public)