aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/middlewares/validators/videos/video-channels.ts
Commit message (Collapse)AuthorAgeFilesLines
* Check channel sync id is owned by channelChocobozzz2022-09-161-0/+7
|
* Remove unnecessary logsChocobozzz2022-08-171-13/+0
|
* Cleanup useless express validator messagesChocobozzz2022-08-171-13/+25
|
* Add ability to list imports of a channel syncChocobozzz2022-08-101-2/+12
|
* Channel sync (#5135)Florent2022-08-101-18/+37
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add external channel URL for channel update / creation (#754) * Disallow synchronisation if user has no video quota (#754) * More constraints serverside (#754) * Disable sync if server configuration does not allow HTTP import (#754) * Working version synchronizing videos with a job (#754) TODO: refactoring, too much code duplication * More logs and try/catch (#754) * Fix eslint error (#754) * WIP: support synchronization time change (#754) * New frontend #754 * WIP: Create sync front (#754) * Enhance UI, sync creation form (#754) * Warning message when HTTP upload is disallowed * More consistent names (#754) * Binding Front with API (#754) * Add a /me API (#754) * Improve list UI (#754) * Implement creation and deletion routes (#754) * Lint (#754) * Lint again (#754) * WIP: UI for triggering import existing videos (#754) * Implement jobs for syncing and importing channels * Don't sync videos before sync creation + avoid concurrency issue (#754) * Cleanup (#754) * Cleanup: OpenAPI + API rework (#754) * Remove dead code (#754) * Eslint (#754) * Revert the mess with whitespaces in constants.ts (#754) * Some fixes after rebase (#754) * Several fixes after PR remarks (#754) * Front + API: Rename video-channels-sync to video-channel-syncs (#754) * Allow enabling channel sync through UI (#754) * getChannelInfo (#754) * Minor fixes: openapi + model + sql (#754) * Simplified API validators (#754) * Rename MChannelSync to MChannelSyncChannel (#754) * Add command for VideoChannelSync (#754) * Use synchronization.enabled config (#754) * Check parameters test + some fixes (#754) * Fix conflict mistake (#754) * Restrict access to video channel sync list API (#754) * Start adding unit test for synchronization (#754) * Continue testing (#754) * Tests finished + convertion of job to scheduler (#754) * Add lastSyncAt field (#754) * Fix externalRemoteUrl sort + creation date not well formatted (#754) * Small fix (#754) * Factorize addYoutubeDLImport and buildVideo (#754) * Check duplicates on channel not on users (#754) * factorize thumbnail generation (#754) * Fetch error should return status 400 (#754) * Separate video-channel-import and video-channel-sync-latest (#754) * Bump DB migration version after rebase (#754) * Prettier states in UI table (#754) * Add DefaultScope in VideoChannelSyncModel (#754) * Fix audit logs (#754) * Ensure user can upload when importing channel + minor fixes (#754) * Mark synchronization as failed on exception + typos (#754) * Change REST API for importing videos into channel (#754) * Add option for fully synchronize a chnanel (#754) * Return a whole sync object on creation to avoid tricks in Front (#754) * Various remarks (#754) * Single quotes by default (#754) * Rename synchronization to video_channel_synchronization * Add check.latest_videos_count and max_per_user options (#754) * Better channel rendering in list #754 * Allow sorting with channel name and state (#754) * Add missing tests for channel imports (#754) * Prefer using a parent job for channel sync * Styling * Client styling Co-authored-by: Chocobozzz <me@florianbigard.com>
* Give moderators access to edit channels (#4608)kontrollanten2021-12-131-45/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * give admins access to edit all channels closes #4598 * test(channels): +admin update another users channel * Fix tests * fix(server): delete another users channel Since the channel owner isn't necessary the auth user we need to check the right account whether it's the last video or not. * REMOVE_ANY_VIDEO_CHANNEL > MANAGE_ANY_VIDEO_CHANNEL Merge REMOVE_ANY_VIDEO_CHANNEL and MANY_VIDEO_CHANNELS to MANAGE_ANY_VIDEO_CHANNEL. * user-right: moderator can't manage admins channel * client: MyVideoChannelCreateComponent > VideoChannelCreateComponent * client: MyVideoChannelEdit > VideoChannelEdit * Revert "user-right: moderator can't manage admins channel" This reverts commit 2c627c154e2bfe6af2e0f45efb27faf4117572f3. * server: clean dupl validator functionality * fix ensureUserCanManageChannel usage It's not async anymore. * server: merge channel validator middleares ensureAuthUserOwnsChannelValidator & ensureUserCanManageChannel gets merged into one middleware. * client(VideoChannelEdit): redirect to prev route * fix(VideoChannels): handle anon users * client: new routes for create/update channel * Refactor channel validators Co-authored-by: Chocobozzz <me@florianbigard.com>
* Made the video channels limit (per user) server-wide configurable (#4491)Florian CUNY2021-10-261-3/+3
| | | | | | | | | | | | | | | * Made the video channels limit (per user) server-wide configurable Implements https://github.com/Chocobozzz/PeerTube/issues/3092 Also added a "quota bar" in the account's settings page * Fixed lint errors * Another pass at fixing lint errors * Applied code suggestions * Removed 'video channels quota'
* Split check user params testsChocobozzz2021-10-201-1/+1
|
* Add ability to view my followersChocobozzz2021-10-201-16/+0
|
* esModuleInterop to trueChocobozzz2021-08-271-1/+1
|
* Fix backend channel name validator consistencyChocobozzz2021-08-051-7/+7
|
* Refactor requestsChocobozzz2021-07-201-1/+1
|
* Add ability to search playlistsChocobozzz2021-06-251-0/+13
|
* Move middleware utils in middlewaresChocobozzz2021-06-031-2/+1
| | | | helpers modules should not import models
* refactor API errors to standard error formatRigel Kent2021-06-021-22/+25
|
* Cleanup models directory organizationChocobozzz2021-05-111-2/+2
|
* Add banners supportChocobozzz2021-04-081-2/+0
|
* replace numbers with typed http status codes (#3409)Rigel Kent2020-12-071-9/+10
|
* Split types and typingsChocobozzz2020-06-181-1/+1
|
* Optimize views per day in video channelsChocobozzz2020-06-121-7/+10
|
* Put channel stats behind withStats flagRigel Kent2020-03-311-2/+12
|
* Fix channel creation limitationChocobozzz2019-12-051-1/+1
|
* Limit channel numbersChocobozzz2019-11-291-0/+9
| | | | | We can't load too much channels in selects and it helps to prevent actor name squatting
* Cleanup model typesChocobozzz2019-08-201-3/+2
|
* Stronger model typingsChocobozzz2019-08-191-2/+3
|
* Fix express validatorChocobozzz2019-07-251-1/+1
|
* Refactor middleware helpersChocobozzz2019-07-241-2/+1
|
* Server: Bulk update videos support fieldChocobozzz2019-05-311-3/+13
|
* Don't expose constants directly in initializers/Chocobozzz2019-04-111-2/+1
|
* Does existChocobozzz2019-03-191-7/+7
|
* Playlist server APIChocobozzz2019-03-181-14/+0
|
* Add user history and resume videosChocobozzz2018-10-051-0/+175