mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-05 19:42:24 +02:00
Automatically resize avatars
This commit is contained in:
parent
01de67b9a4
commit
e8e122002d
12 changed files with 27 additions and 11 deletions
|
@ -12,7 +12,6 @@ import { isSignupAllowed } from '../../helpers/utils'
|
|||
import { CONSTRAINTS_FIELDS } from '../../initializers'
|
||||
import { UserModel } from '../../models/account/user'
|
||||
import { areValidationErrors } from './utils'
|
||||
import Multer = require('multer')
|
||||
|
||||
const usersAddValidator = [
|
||||
body('username').custom(isUserUsernameValid).withMessage('Should have a valid username (lowercase alphanumeric characters)'),
|
||||
|
@ -105,7 +104,7 @@ const usersUpdateMyAvatarValidator = [
|
|||
),
|
||||
|
||||
(req: express.Request, res: express.Response, next: express.NextFunction) => {
|
||||
logger.debug('Checking usersUpdateMyAvatarValidator parameters', { parameters: req.body })
|
||||
logger.debug('Checking usersUpdateMyAvatarValidator parameters', { files: req.files })
|
||||
|
||||
if (areValidationErrors(req, res)) return
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue