Update default user theme to instance-default

(cherry picked from commit 72fa5cb1272b0b897f5a975615619e354055e5bd)
pull/2460/head
Jorge Silva 2020-02-11 09:55:52 +00:00 committed by Chocobozzz
parent 79ee77eab1
commit 3f87a46f1d
1 changed files with 2 additions and 2 deletions

View File

@ -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<UserModel> {
videoQuotaDaily: number
@AllowNull(false)
@Default(DEFAULT_THEME_NAME)
@Default(DEFAULT_USER_THEME_NAME)
@Is('UserTheme', value => throwIfNotValid(value, isThemeNameValid, 'theme'))
@Column
theme: string