From 38fa2065831b5f55be0d7f30f19a62c967397208 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 10 Nov 2017 14:48:08 +0100 Subject: Remove references to author --- server/controllers/api/users.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'server/controllers/api/users.ts') diff --git a/server/controllers/api/users.ts b/server/controllers/api/users.ts index bacfc4552..9ec6feb57 100644 --- a/server/controllers/api/users.ts +++ b/server/controllers/api/users.ts @@ -28,7 +28,7 @@ import { UserRole, UserRight } from '../../../shared' -import { createUserAuthorAndChannel } from '../../lib' +import { createUserAccountAndChannel } from '../../lib' import { UserInstance } from '../../models' import { videosSortValidator } from '../../middlewares/validators/sort' import { setVideosSort } from '../../middlewares/sort' @@ -142,9 +142,9 @@ async function createUser (req: express.Request, res: express.Response, next: ex videoQuota: body.videoQuota }) - await createUserAuthorAndChannel(user) + await createUserAccountAndChannel(user) - logger.info('User %s with its channel and author created.', body.username) + logger.info('User %s with its channel and account created.', body.username) } async function registerUser (req: express.Request, res: express.Response, next: express.NextFunction) { @@ -159,7 +159,7 @@ async function registerUser (req: express.Request, res: express.Response, next: videoQuota: CONFIG.USER.VIDEO_QUOTA }) - await createUserAuthorAndChannel(user) + await createUserAccountAndChannel(user) return res.type('json').status(204).end() } -- cgit v1.2.3