mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-02-25 18:55:32 -06:00
Add blacklist reason field
This commit is contained in:
@@ -15,7 +15,7 @@ let config: IConfig = require('config')
|
||||
|
||||
// ---------------------------------------------------------------------------
|
||||
|
||||
const LAST_MIGRATION_VERSION = 250
|
||||
const LAST_MIGRATION_VERSION = 255
|
||||
|
||||
// ---------------------------------------------------------------------------
|
||||
|
||||
@@ -34,7 +34,7 @@ const SORTABLE_COLUMNS = {
|
||||
USERS: [ 'id', 'username', 'createdAt' ],
|
||||
ACCOUNTS: [ 'createdAt' ],
|
||||
JOBS: [ 'createdAt' ],
|
||||
VIDEO_ABUSES: [ 'id', 'createdAt' ],
|
||||
VIDEO_ABUSES: [ 'id', 'createdAt', 'state' ],
|
||||
VIDEO_CHANNELS: [ 'id', 'name', 'updatedAt', 'createdAt' ],
|
||||
VIDEOS: [ 'name', 'duration', 'createdAt', 'publishedAt', 'views', 'likes' ],
|
||||
VIDEO_IMPORTS: [ 'createdAt' ],
|
||||
@@ -261,6 +261,9 @@ const CONSTRAINTS_FIELDS = {
|
||||
REASON: { min: 2, max: 300 }, // Length
|
||||
MODERATION_COMMENT: { min: 2, max: 300 } // Length
|
||||
},
|
||||
VIDEO_BLACKLIST: {
|
||||
REASON: { min: 2, max: 300 } // Length
|
||||
},
|
||||
VIDEO_CHANNELS: {
|
||||
NAME: { min: 3, max: 120 }, // Length
|
||||
DESCRIPTION: { min: 3, max: 500 }, // Length
|
||||
|
||||
Reference in New Issue
Block a user