From 503c6f440abc8f5924c38c4bd63591cb6cefacec Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Mon, 15 Jul 2019 15:41:56 +0200 Subject: Add peertube plugin index website models --- server/models/account/user.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'server/models/account/user.ts') diff --git a/server/models/account/user.ts b/server/models/account/user.ts index 6f0b0e00f..0041bf577 100644 --- a/server/models/account/user.ts +++ b/server/models/account/user.ts @@ -52,7 +52,7 @@ import { ActorModel } from '../activitypub/actor' import { ActorFollowModel } from '../activitypub/actor-follow' import { VideoImportModel } from '../video/video-import' import { UserAdminFlag } from '../../../shared/models/users/user-flag.model' -import { isThemeValid } from '../../helpers/custom-validators/plugins' +import { isThemeNameValid } from '../../helpers/custom-validators/plugins' import { getThemeOrDefault } from '../../lib/plugins/theme-utils' enum ScopeNames { @@ -191,7 +191,7 @@ export class UserModel extends Model { @AllowNull(false) @Default(DEFAULT_THEME_NAME) - @Is('UserTheme', value => throwIfNotValid(value, isThemeValid, 'theme')) + @Is('UserTheme', value => throwIfNotValid(value, isThemeNameValid, 'theme')) @Column theme: string -- cgit v1.2.3