From 3f87a46f1dd01485e4a28422f74c3a1b0f56729f Mon Sep 17 00:00:00 2001 From: Jorge Silva Date: Tue, 11 Feb 2020 09:55:52 +0000 Subject: Update default user theme to instance-default (cherry picked from commit 72fa5cb1272b0b897f5a975615619e354055e5bd) --- server/models/account/user.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'server/models/account') diff --git a/server/models/account/user.ts b/server/models/account/user.ts index fb4c15aef..777f09666 100644 --- a/server/models/account/user.ts +++ b/server/models/account/user.ts @@ -49,7 +49,7 @@ import { VideoPlaylistModel } from '../video/video-playlist' import { AccountModel } from './account' import { NSFWPolicyType } from '../../../shared/models/videos/nsfw-policy.type' import { values } from 'lodash' -import { DEFAULT_THEME_NAME, DEFAULT_USER_THEME_NAME, NSFW_POLICY_TYPES } from '../../initializers/constants' +import { DEFAULT_USER_THEME_NAME, NSFW_POLICY_TYPES } from '../../initializers/constants' import { clearCacheByUserId } from '../../lib/oauth-model' import { UserNotificationSettingModel } from './user-notification-setting' import { VideoModel } from '../video/video' @@ -233,7 +233,7 @@ export class UserModel extends Model { videoQuotaDaily: number @AllowNull(false) - @Default(DEFAULT_THEME_NAME) + @Default(DEFAULT_USER_THEME_NAME) @Is('UserTheme', value => throwIfNotValid(value, isThemeNameValid, 'theme')) @Column theme: string -- cgit v1.2.3