aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/controllers/api/server
Commit message (Collapse)AuthorAgeFilesLines
* Cleanup models directory organizationChocobozzz2021-05-112-10/+10
|
* Resumable video uploads (#3933)kontrollanten2021-05-101-0/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * WIP: resumable video uploads relates to #324 * fix review comments * video upload: error handling * fix audio upload * fixes after self review * Update server/controllers/api/videos/index.ts Co-authored-by: Rigel Kent <par@rigelk.eu> * Update server/middlewares/validators/videos/videos.ts Co-authored-by: Rigel Kent <par@rigelk.eu> * Update server/controllers/api/videos/index.ts Co-authored-by: Rigel Kent <par@rigelk.eu> * update after code review * refactor upload route - restore multipart upload route - move resumable to dedicated upload-resumable route - move checks to middleware - do not leak internal fs structure in response * fix yarn.lock upon rebase * factorize addVideo for reuse in both endpoints * add resumable upload API to openapi spec * add initial test and test helper for resumable upload * typings for videoAddResumable middleware * avoid including aws and google packages via node-uploadx, by only including uploadx/core * rename ex-isAudioBg to more explicit name mentioning it is a preview file for audio * add video-upload-tmp-folder-cleaner job * stronger typing of video upload middleware * reduce dependency to @uploadx/core * add audio upload test * refactor resumable uploads cleanup from job to scheduler * refactor resumable uploads scheduler to compare to last execution time * make resumable upload validator to always cleanup on failure * move legacy upload request building outside of uploadVideo test helper * filter upload-resumable middlewares down to POST, PUT, DELETE also begin to type metadata * merge add duration functions * stronger typings and documentation for uploadx behaviour, move init validator up * refactor(client/video-edit): options > uploadxOptions * refactor(client/video-edit): remove obsolete else * scheduler/remove-dangling-resum: rename tag * refactor(server/video): add UploadVideoFiles type * refactor(mw/validators): restructure eslint disable * refactor(mw/validators/videos): rename import * refactor(client/vid-upload): rename html elem id * refactor(sched/remove-dangl): move fn to method * refactor(mw/async): add method typing * refactor(mw/vali/video): double quote > single * refactor(server/upload-resum): express use > all * proper http methud enum server/middlewares/async.ts * properly type http methods * factorize common video upload validation steps * add check for maximum partially uploaded file size * fix audioBg use * fix extname(filename) in addVideo * document parameters for uploadx's resumable protocol * clear META files in scheduler * last audio refactor before cramming preview in the initial POST form data * refactor as mulitpart/form-data initial post request this allows preview/thumbnail uploads alongside the initial request, and cleans up the upload form * Add more tests for resumable uploads * Refactor remove dangling resumable uploads * Prepare changelog * Add more resumable upload tests * Remove user quota check for resumable uploads * Fix upload error handler * Update nginx template for upload-resumable * Cleanup comment * Remove unused express methods * Prefer to use got instead of raw http * Don't retry on error 500 Co-authored-by: Rigel Kent <par@rigelk.eu> Co-authored-by: Rigel Kent <sendmemail@rigelk.eu> Co-authored-by: Chocobozzz <me@florianbigard.com>
* Try to speed up server testsChocobozzz2021-02-191-2/+4
|
* Add AP statsChocobozzz2020-12-151-51/+5
|
* replace numbers with typed http status codes (#3409)Rigel Kent2020-12-074-12/+16
|
* Fix incorrect IDs in AP federationChocobozzz2020-11-201-1/+1
|
* Remove notifications of muted accounts/serversChocobozzz2020-11-181-4/+18
|
* Add last login date to usersChocobozzz2020-05-071-1/+7
|
* Support logout and add id and pass testsChocobozzz2020-05-042-2/+2
|
* Avoir some circular dependenciesChocobozzz2020-05-042-2/+4
|
* Add filter inputs for blacklisted videos and muted accounts/serversRigel Kent2020-05-011-2/+14
|
* Fix total videos statsChocobozzz2020-03-131-5/+6
|
* Move to eslintcontainChocobozzz2020-02-034-10/+9
|
* Add ability to list redundanciesChocobozzz2020-01-283-7/+91
|
* Adapt feeds content-type to accept headerRigel Kent2020-01-101-1/+1
|
* Fix logs regexChocobozzz2019-12-121-1/+2
|
* Serve audit logs to clientChocobozzz2019-12-111-6/+51
|
* Filter on follows actor types in about pageChocobozzz2019-11-291-0/+2
|
* Only display accepted followers/followings in about pageChocobozzz2019-11-281-15/+20
|
* Fix error log when updating redundancyChocobozzz2019-11-271-1/+1
|
* Add auto follow back support for instancesChocobozzz2019-09-041-0/+3
|
* Feature/subject in contact form (#1926)Nassim Bounouas2019-06-211-1/+1
| | | | | | | | * #1915 Add a subject to contact form and add it to email sent * #1915 Add subject to contact form tests * #1915 Contact form test corrected && tslint correction
* Add ability to delete old remote viewsChocobozzz2019-04-121-1/+1
|
* Don't expose constants directly in initializers/Chocobozzz2019-04-112-2/+3
|
* Move config in its own fileChocobozzz2019-04-112-2/+4
|
* Add debug component to help admins to fix IP issuesChocobozzz2019-04-112-0/+27
|
* Add logs page in clientChocobozzz2019-04-111-24/+28
|
* Add logs endpointChocobozzz2019-04-102-0/+92
|
* Add ability to manually approves instance followers in REST APIChocobozzz2019-04-081-5/+33
|
* Add ability to forbid followersChocobozzz2019-04-081-1/+1
|
* Add ability to remove an instance follower in APIChocobozzz2019-04-081-5/+27
|
* Cleanup express locals typingsChocobozzz2019-03-193-14/+11
|
* Add totalLocalVideoFilesSize in statsChocobozzz2019-01-151-2/+5
|
* Implement contact form on server sideChocobozzz2019-01-102-0/+30
|
* Add ability to mute a user/instance by server in server apiChocobozzz2018-10-162-0/+134
|
* Add ability to search on followers/followingChocobozzz2018-10-101-2/+14
|
* Remove duplicated videos on unfollow/delete redundancyChocobozzz2018-09-282-0/+11
|
* Put config redundancy strategies in "strategies" subkeyChocobozzz2018-09-191-1/+1
|
* Add redundancy statsChocobozzz2018-09-141-1/+13
|
* Basic video redundancy implementationChocobozzz2018-09-133-0/+39
|
* Add subscriptions endpoints to REST APIChocobozzz2018-08-271-8/+9
|
* Move server follow in the job queueChocobozzz2018-04-181-63/+15
| | | | It helps to track follow errors
* Fix error loggingChocobozzz2018-03-261-3/+3
|
* Add stats routeChocobozzz2018-02-282-0/+41
|
* Don't follow ourselvesChocobozzz2018-02-231-0/+4
|
* Move job queue to redisChocobozzz2018-01-251-1/+1
| | | | | | | We'll use it as cache in the future. /!\ You'll loose your old jobs (pending jobs too) so upgrade only when you don't have pending job anymore.
* Basic api documentation #7 (#220)Dimitri Gilbert2018-01-241-1/+0
| | | | | | | | | | | | | | | | | | | | * Basic api documentation * fix styling issue * fix styling issue * gitignore unecessary folders * openApi 2.0 first draft * solved conflicts * solved errors in openapi file * added missing doc on video + deleted apidoc comments * fix last warnings and errors inopenapi definition
* Don't show videos of remote instance after unfollowChocobozzz2018-01-181-3/+3
|
* Set sort refractoringChocobozzz2018-01-181-4/+4
|
* Add tests to handle down serverChocobozzz2018-01-111-3/+1
|