X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=server%2Finitializers%2Fconstants.ts;h=3a5a557d4c001a9afc0b43c1b1b2c0389d1ab57f;hb=efed5d5ef61cd14ee3f9ed1dda8ea8e937370405;hp=100a77622f5ce2f214da8703d2111a0f23eee84b;hpb=225a89c2afbbe53cf39ffa7ea0cd485095a1d5f5;p=github%2FChocobozzz%2FPeerTube.git diff --git a/server/initializers/constants.ts b/server/initializers/constants.ts index 100a77622..3a5a557d4 100644 --- a/server/initializers/constants.ts +++ b/server/initializers/constants.ts @@ -9,7 +9,7 @@ import { isTestInstance, root, sanitizeHost, sanitizeUrl } from '../helpers/core // --------------------------------------------------------------------------- -const LAST_MIGRATION_VERSION = 140 +const LAST_MIGRATION_VERSION = 145 // --------------------------------------------------------------------------- @@ -26,6 +26,7 @@ const SORTABLE_COLUMNS = { VIDEO_ABUSES: [ 'id', 'createdAt' ], VIDEO_CHANNELS: [ 'id', 'name', 'updatedAt', 'createdAt' ], VIDEOS: [ 'name', 'duration', 'createdAt', 'views', 'likes' ], + VIDEO_COMMENT_THREADS: [ 'createdAt' ], BLACKLISTS: [ 'id', 'name', 'duration', 'views', 'likes', 'dislikes', 'uuid', 'createdAt' ], FOLLOWERS: [ 'createdAt' ], FOLLOWING: [ 'createdAt' ] @@ -175,6 +176,10 @@ const CONSTRAINTS_FIELDS = { }, VIDEO_EVENTS: { COUNT: { min: 0 } + }, + VIDEO_COMMENTS: { + TEXT: { min: 2, max: 3000 }, // Length + URL: { min: 3, max: 2000 } // Length } }