diff options
author | Jorge Silva <j.silva@ipbc.io> | 2020-02-11 09:55:52 +0000 |
---|---|---|
committer | Chocobozzz <chocobozzz@cpy.re> | 2020-02-12 11:39:51 +0100 |
commit | 3f87a46f1dd01485e4a28422f74c3a1b0f56729f (patch) | |
tree | c349ed7dc0938df4087bc6b54f80d562762f8ad7 | |
parent | 79ee77eab14a64d51f628564062486ec388931b4 (diff) | |
download | PeerTube-3f87a46f1dd01485e4a28422f74c3a1b0f56729f.tar.gz PeerTube-3f87a46f1dd01485e4a28422f74c3a1b0f56729f.tar.zst PeerTube-3f87a46f1dd01485e4a28422f74c3a1b0f56729f.zip |
Update default user theme to instance-default
(cherry picked from commit 72fa5cb1272b0b897f5a975615619e354055e5bd)
-rw-r--r-- | server/models/account/user.ts | 4 |
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' | |||
49 | import { AccountModel } from './account' | 49 | import { AccountModel } from './account' |
50 | import { NSFWPolicyType } from '../../../shared/models/videos/nsfw-policy.type' | 50 | import { NSFWPolicyType } from '../../../shared/models/videos/nsfw-policy.type' |
51 | import { values } from 'lodash' | 51 | import { values } from 'lodash' |
52 | import { DEFAULT_THEME_NAME, DEFAULT_USER_THEME_NAME, NSFW_POLICY_TYPES } from '../../initializers/constants' | 52 | import { DEFAULT_USER_THEME_NAME, NSFW_POLICY_TYPES } from '../../initializers/constants' |
53 | import { clearCacheByUserId } from '../../lib/oauth-model' | 53 | import { clearCacheByUserId } from '../../lib/oauth-model' |
54 | import { UserNotificationSettingModel } from './user-notification-setting' | 54 | import { UserNotificationSettingModel } from './user-notification-setting' |
55 | import { VideoModel } from '../video/video' | 55 | import { 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 |