Commit Graph
403 Commits
Author SHA1 Message Date
kontrollantenandChocobozzz 5a9c09be7f add filter:api.user.signup.requires-approval.result (#7446)
* add filter:api.user.signup.requires-approval.result

closes #6691

* update test

* signup: dont mark /registrations/request as deprecated

* fix broken tests

* changes after review

* Add offensive test for video filename check

* PR fixes

---------

Co-authored-by: Chocobozzz <me@florianbigard.com>
2026-03-24 16:25:38 +01:00
Chocobozzz 4ce5b37c14 Add quick filter for registration requests 2026-03-24 10:41:18 +01:00
Chocobozzz c4746d54b9 Improve job filters UX
Allow to click on tags to automatically filter by type/state
2026-03-24 10:17:04 +01:00
Chocobozzz d7b2cd9e66 Add ability to filter users by role 2026-03-19 14:53:56 +01:00
Sébastien NOBILIandChocobozzz c9855027ec Feat: video download stats (#7437)
* register job

* track downloads & display total count on stats page

* display download timeseries graph

* automated tests

* diff cleanup

* add downloads to platform stats

* remove extra semicolons

* fix lint issues

* set DB migration target

* move download stats to VideoViewModel

* rename videoView to videoStats

* lint fixes

* fix failing tests

* track remote downloads

* lint fixes

* Rename view directory to stat

* Simplify metric typing

* Do not display downloads in table

* Simplify downloads process

* Create stats tests directory

* Simplify download stats

* Fix stats fallback

* Fix redundancy

* Prevent useless log

---------

Co-authored-by: Chocobozzz <me@florianbigard.com>
2026-03-17 13:03:23 +01:00
Chocobozzz a4730f0d9c Update PeerTube openapi version 2026-03-12 09:59:56 +01:00
Chocobozzz af585a8c3a Add missing responses to server blocklist 2026-03-05 11:37:22 +01:00
Chocobozzz 80e3be3559 Update REST API blocklist documentation 2026-03-05 11:32:49 +01:00
Chocobozzz 3af581d28a Add missing REST API endpoints documentation 2026-03-05 09:30:48 +01:00
Chocobozzz 5fa34cc91f Fix openapi doc 2026-02-24 14:06:11 +01:00
Chocobozzz 3896d60a7a Fix logoType path param 2026-02-24 13:35:15 +01:00
Steven Dickinson 38bf994da3 putVideo tags encoding fix
When using openapi-generator to build an API from the spec, `tags` would have a `_collection_format` set to `csv`, which caused the API to submit eg "tags=tag1,tag2,tag3", instead of submitting multiple `tag` parameters, eg `tag=tag1,tag=tag2,tag=tag3`

Setting the encoding this way sets the `_collection_format` to `multi`, which works.
2026-02-24 09:10:25 +01:00
Chocobozzz 4710ffb0ec Add video embed domain privacy 2026-02-23 09:39:55 +01:00
Chocobozzz 34dfb2aff4 Generate more video thumbnail sizes 2026-02-19 15:11:25 +01:00
Chocobozzz 402d472a56 Fix tests 2026-02-18 10:22:17 +01:00
Chocobozzz 526f1c6df5 Rebuild thumbnail and media file architecture
* Move to sharp library to improve image manipulation performance and
   support more image formats
 * Move video previews in thumbnails directory
 * Deprecate lazy static previews endpoint
 * Plugin `getFiles()` API now includes a `width`/`height` attribute
 * Deprecate previewfile for video publication/update.
   Use `thumbnailfile` instead
 * Deprecate `thumbnailPath` and `previewPath` of `Video` in favour of
   `thumbnails`
 * Deprecate `thumbnailPath` of `VideoPlaylist` in favour of
   `thumbnails`
 * Replace `torrentPath` by `torrentFilename` and `torrentStream` for
   remote torrents for `filter:api.download.torrent.allowed.result`
   plugin filter
 * Remove useless `fileUrl` from `UserExport` and `VideoSource`
 * Remove remote captions where we don't have a valid URL
 * cache directory is not deleted on each run anymore
 * Add permanent cache for video captions and storyboards
 * Remove `cache` admin configuration, use house-keeping script instead
2026-02-13 06:20:56 +01:00
Jakob Meier a3d72de638 Fix openapi docs for playlist videos response
This is the playlist element id, used to update or delete elements in
the list. The old description and example made it look like it is the
video object id.
2026-01-22 09:38:15 +01:00
Chocobozzz db5d1358e3 Better too long password error UX 2025-12-30 20:56:06 +01:00
Chocobozzz 4648f3d058 Update openapi version 2025-12-15 16:29:20 +01:00
Chocobozzz 4d98273706 Sort live session by startDate desc
To list latest ones if we have more than 100 sessions
2025-11-28 14:17:20 +01:00
Chocobozzz cdc002f1cd Add more info about deprecated fields 2025-11-26 12:19:19 +01:00
Chocobozzz 68318403e0 Improve video password error response 2025-11-25 09:46:41 +01:00
Chocobozzz 60f92d55de Add new feature modal info 2025-11-20 16:06:41 +01:00
Chocobozzz 3ddddc1b72 Remove deprecated fields
* Remove filename from VideoSource
 * Remove commentsEnabled from REST API & ActivityPub
 * Remove redundancies.files from VideoRedundancy
 * Correctly deprecate captionPath from VideoCaption
 * Correctly deprecate path from ActorImage
 * Correctly deprecate storyboardPath from Storyboard
2025-11-18 07:04:15 +01:00
Shalabh AgarwalandChocobozzz 9ed63f5e37 feat: add new video password api (#7044)
* add new video password api

* replace patch with post request

* Styling

---------

Co-authored-by: Chocobozzz <me@florianbigard.com>
2025-11-13 14:40:44 +01:00
Chocobozzz e30e5c9f7b Add ability to retry video imports
Channel syncs also retry imports
2025-11-12 14:35:26 +01:00
Chocobozzz 4f8edcc095 Add openapi doc for channel activities 2025-10-31 10:08:24 +01:00
Chocobozzz afd913530c Fix mention redirection 2025-10-28 16:00:26 +01:00
Chocobozzz 381f8e3b3a Add channel collaborators feature
For now only an "editor" role is available for collaborators. An editor
has the same right as the channel owner but cannot:
 * Delete the channel
 * Invite collaborators
 * Transfer ownership of a video
 * Transfer ownership of a channel (feature not developed yet)
 * Invite a new collaborator
 * Remove another collaborator

 The owner of a channel can invite another local account to be an editor
 of the channel. The editor can accept or reject the invitation.

 Moved transfer ownership of a video in the "Manage video" page.

 Updated the video channel update page to a "Manage" page, like we have
 for the video to add an "Editors" sub section, allowing the owner of
   the channel to manage channel editors.

Refactored the SQL query classes and added more raw SQL queries for
models that list entities depending on channel collaboration status.

Updated server tests to check editors can manage or cannot manage
channel entities.
2025-10-28 14:44:44 +01:00
Chocobozzz df86535f46 Add missing elements of user object 2025-09-24 16:00:34 +02:00
Chocobozzz 50c184a9a2 Fix external token doc 2025-09-15 13:39:41 +02:00
Chocobozzz a11d3102ce Fix openapi schema 2025-09-12 10:13:29 +02:00
Chocobozzz ef95c3fe72 Remove openapi warnings 2025-09-12 08:54:50 +02:00
Chocobozzz 200193262c Add openapi doc for player settings 2025-09-12 08:54:50 +02:00
諏訪子 ef28ba3038 add x link
Add missing code
2025-09-10 11:51:58 +02:00
Bojidar MarinovandChocobozzz 8c9b4abe45 Add Scheduled Lives functionality (#7144)
* Add Scheduled Lives functionality through originallyPublishedAt

Implements #6604 by reusing the originallyPublishedAt field of isLive videos to mark "waiting for live" videos as scheduled at a set time.

* Hide scheduled lives from Browse Videos page

* Add tests for Scheduled Live videos

* Make scheduled lives use a dedicated scheduledAt field in the VideoLive table

* Plan live schedules to evolve in the future

 * Use a dedicated table to store live schedules, so we can add multiple
   schedules in the future and also add a title, description etc. for a
   specific schedule
 * Adapt REST API to use an array to store/get live schedules
 * Add REST API param so it's the client choice to include or not
   scheduled lives
 * Export schedules info in user import/export

---------

Co-authored-by: Chocobozzz <me@florianbigard.com>
2025-08-01 15:06:27 +02:00
Chocobozzz 9af56c26bc Fix openapi missing param 2025-07-30 11:52:54 +02:00
Chocobozzz 57caf25611 Add ability to list and revoke token sessions 2025-07-30 11:42:49 +02:00
Chocobozzz d6e4dac032 Add email translations
Convert emails from Pug template to Handlebars because i18next doesn't
support Pug
2025-07-24 09:18:04 +02:00
Chocobozzz e399515941 Add missing fields in openapi 2025-07-16 14:58:38 +02:00
Chocobozzz b0d5a6776b Remove reference to openapi generator
OpenAPI generation crashes so we had to remove them
2025-07-08 08:26:00 +02:00
Chocobozzz 0adafa0fc0 Add ability to order playlists 2025-07-06 13:05:01 +02:00
Chocobozzz c0f4de6077 Add ability to customize instance logo 2025-06-24 06:38:29 +02:00
Chocobozzz eb11e5793f Add admin config wizard 2025-06-18 06:40:19 +02:00
Chocobozzz 9ca0d0739b Add missing channelId param 2025-06-16 08:34:25 +02:00
Chocobozzz b84f203459 Remove shocking/disturbing nsfw flag
It's too vague
2025-05-14 15:16:38 +02:00
Wicklow 389c432c5c update openapi 2025-05-14 15:16:27 +02:00
Chocobozzz dd4027a10f Improve NSFW system
* Add NSFW flags to videos so the publisher can add more NSFW context
 * Add NSFW summary to videos, similar to content warning system so the
   publisher has a free text to describe NSFW aspect of its video
 * Add additional "warn" NSFW policy: the video thumbnail is not blurred
   and we display a tag below the video miniature, the video player
   includes the NSFW warning (with context if available) and it also
   prevent autoplay
 * "blur" NSFW settings inherits "warn" policy and also blur the video
   thumbnail
 * Add NSFW flag settings to users so they can have more granular
   control about what content they want to hide, warn or display
2025-04-30 15:54:11 +02:00
Chocobozzz ad21027598 Add missing reset password doc 2025-04-15 10:49:15 +02:00
Chocobozzz e7753c1b62 Prefer handle param name 2025-04-10 09:55:55 +02:00