aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/models
diff options
context:
space:
mode:
authorJorge Silva <j.silva@ipbc.io>2020-02-11 09:55:52 +0000
committerChocobozzz <chocobozzz@cpy.re>2020-02-12 11:39:51 +0100
commit3f87a46f1dd01485e4a28422f74c3a1b0f56729f (patch)
treec349ed7dc0938df4087bc6b54f80d562762f8ad7 /server/models
parent79ee77eab14a64d51f628564062486ec388931b4 (diff)
downloadPeerTube-3f87a46f1dd01485e4a28422f74c3a1b0f56729f.tar.gz
PeerTube-3f87a46f1dd01485e4a28422f74c3a1b0f56729f.tar.zst
PeerTube-3f87a46f1dd01485e4a28422f74c3a1b0f56729f.zip
Update default user theme to instance-default
(cherry picked from commit 72fa5cb1272b0b897f5a975615619e354055e5bd)
Diffstat (limited to 'server/models')
-rw-r--r--server/models/account/user.ts4
1 files changed, 2 insertions, 2 deletions
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'
49import { AccountModel } from './account' 49import { AccountModel } from './account'
50import { NSFWPolicyType } from '../../../shared/models/videos/nsfw-policy.type' 50import { NSFWPolicyType } from '../../../shared/models/videos/nsfw-policy.type'
51import { values } from 'lodash' 51import { values } from 'lodash'
52import { DEFAULT_THEME_NAME, DEFAULT_USER_THEME_NAME, NSFW_POLICY_TYPES } from '../../initializers/constants' 52import { DEFAULT_USER_THEME_NAME, NSFW_POLICY_TYPES } from '../../initializers/constants'
53import { clearCacheByUserId } from '../../lib/oauth-model' 53import { clearCacheByUserId } from '../../lib/oauth-model'
54import { UserNotificationSettingModel } from './user-notification-setting' 54import { UserNotificationSettingModel } from './user-notification-setting'
55import { VideoModel } from '../video/video' 55import { VideoModel } from '../video/video'
@@ -233,7 +233,7 @@ export class UserModel extends Model<UserModel> {
233 videoQuotaDaily: number 233 videoQuotaDaily: number
234 234
235 @AllowNull(false) 235 @AllowNull(false)
236 @Default(DEFAULT_THEME_NAME) 236 @Default(DEFAULT_USER_THEME_NAME)
237 @Is('UserTheme', value => throwIfNotValid(value, isThemeNameValid, 'theme')) 237 @Is('UserTheme', value => throwIfNotValid(value, isThemeNameValid, 'theme'))
238 @Column 238 @Column
239 theme: string 239 theme: string