aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/models/utils.ts
Commit message (Collapse)AuthorAgeFilesLines
* Don't inject untrusted inputChocobozzz2022-11-151-2/+3
| | | | | Even if it's already checked in middlewares It's better to have safe modals too
* Channel sync (#5135)Florent2022-08-101-0/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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>
* Fix various typosluz paz2022-06-071-1/+1
| | | Found via `codespell -q 3 -S ./CREDITS.md,./CHANGELOG.md,./client/src/locale,./yarn.lock,./client/yarn.lock -L doubleclick,followings,nd,ot,ro,serie,splitted,tread,truthy`
* Improve admin users list tableChocobozzz2022-05-241-2/+20
| | | | | | * Fix last login sort with null values * Remember last selected columns * Display last login date by default
* Convert followers/following in raw SQL queriesChocobozzz2022-05-051-4/+11
| | | | Prevent weird bug in SQL generation
* Implement avatar miniatures (#4639)kontrollanten2022-02-281-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * client: remove unused file * refactor(client/my-actor-avatar): size from input Read size from component input instead of scss, to make it possible to use smaller avatar images when implemented. * implement avatar miniatures close #4560 * fix(test): max file size * fix(search-index): normalize res acc to avatarMini * refactor avatars to an array * client/search: resize channel avatar to 120 * refactor(client/videos): remove unused function * client(actor-avatar): set default size * fix tests and avatars full result When findOne is used only an array containting one avatar is returned. * update migration version and version notations * server/search: harmonize normalizing * Cleanup avatar miniature PR Co-authored-by: Chocobozzz <me@florianbigard.com>
* Fix broken depChocobozzz2022-02-091-3/+2
|
* Update server dependenciesChocobozzz2022-02-091-1/+1
|
* Update server dependenciesChocobozzz2022-01-141-1/+2
|
* Fix sequelize order typingsChocobozzz2021-10-221-3/+3
|
* Refactor getOrCreateAPVideoChocobozzz2021-06-021-0/+4
|
* Stricter models typingChocobozzz2021-05-121-4/+3
|
* add sort select to my videos, change default sort to -publishedAtRigel Kent2021-04-061-0/+8
| | | | fixes #3779
* Fix video comments display with deleted commentsChocobozzz2021-02-191-1/+1
|
* Upgrade sequelize to v6Chocobozzz2020-12-091-1/+2
|
* Keep displayName as valid playlist sortChocobozzz2020-12-011-2/+13
|
* Optimize comment RSS sql queryChocobozzz2020-08-201-0/+25
|
* Reorganize client shared modulesChocobozzz2020-06-231-18/+0
|
* Block comments from muted accounts/serversChocobozzz2020-05-291-4/+1
| | | | | | | | | | | | Add better control for users of comments displayed on their videos: * Do not forward comments from muted remote accounts/servers (muted by the current server or by the video owner) * Do not list threads and hide replies (with their children) of accounts/servers muted by the video owner * Hide from RSS comments of muted accounts/servers by video owners Use case: * Try to limit spam propagation in the federation * Add ability for users to automatically hide comments on their videos from undesirable accounts/servers (the comment section belongs to videomakers, so they choose what's posted there)
* Use video abuse filters on client sideChocobozzz2020-05-071-54/+6
|
* parseQueryStringFilter cleanupChocobozzz2020-05-061-11/+3
|
* Fix rowsPerPage change, add filter clear button, update video-abuse-list ↵Rigel Kent2020-05-041-11/+16
| | | | search query param dynamically
* Switching to a named filters/single input on video-abuseRigel Kent2020-05-041-1/+50
|
* Factorize rest-table and fix/simplify SQLRigel Kent2020-05-011-3/+5
|
* Add filter inputs for blacklisted videos and muted accounts/serversRigel Kent2020-05-011-2/+13
|
* Add video file metadata to download modal, via ffprobe (#2411)Rigel Kent2020-03-101-0/+18
| | | | | | | | | | | | | | | | | | | * Add video file metadata via ffprobe * Federate video file metadata * Add tests for file metadata generation * Complete tests for videoFile metadata federation * Lint migration and video-file for metadata * Objectify metadata from getter in ffmpeg-utils * Add metadataUrl to all videoFiles * Simplify metadata API middleware * Load playlist in videoFile when requesting metadata
* Rewrite video list in raw SQLChocobozzz2020-03-101-17/+21
|
* Move to eslintcontainChocobozzz2020-02-031-2/+2
|
* Update validator dependencyChocobozzz2020-01-071-1/+1
|
* Add comment filtering by reply countRigel Kent2019-12-271-0/+14
|
* Add more filters to admin follows tableChocobozzz2019-11-291-0/+14
|
* Add ability to disable webtorrentChocobozzz2019-11-251-1/+1
| | | | In favour of HLS
* Fix blacklist sortChocobozzz2019-09-041-5/+5
|
* Automatically remove bad followingsChocobozzz2019-08-061-3/+17
|
* Sort on videoQuotaUsed in backendChocobozzz2019-07-251-0/+2
|
* Add language filters in user preferencesChocobozzz2019-06-191-3/+9
|
* Upgrade sequelizeChocobozzz2019-04-241-1/+11
|
* Update sequelizeChocobozzz2019-04-241-17/+31
|
* Don't expose constants directly in initializers/Chocobozzz2019-04-111-1/+0
|
* Refresh playlistsChocobozzz2019-03-191-1/+11
|
* Playlist server APIChocobozzz2019-03-181-3/+18
|
* Fix video sortChocobozzz2018-12-181-1/+5
|
* Add history on server sideChocobozzz2018-12-181-1/+1
| | | | Add ability to disable, clear and list user videos history
* Add ability to mute a user/instance by server in server apiChocobozzz2018-10-161-2/+0
|
* Add ability for users to block an account/instance on server sideChocobozzz2018-10-161-0/+18
|
* Fix videos overview tags sectionChocobozzz2018-08-311-5/+8
|
* Trending by intervalChocobozzz2018-08-311-10/+34
|
* Cleanup utils helperChocobozzz2018-08-141-0/+3
|
* Optimize search SQL query (I hope :p)Chocobozzz2018-07-271-13/+1
|
* Fix last commitChocobozzz2018-07-261-1/+1
|