aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/models/account/user.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2019-07-15 15:41:56 +0200
committerChocobozzz <chocobozzz@cpy.re>2019-07-24 10:58:16 +0200
commit503c6f440abc8f5924c38c4bd63591cb6cefacec (patch)
treef369e338d3f6c4c0af574b234b8c53d368350fa5 /server/models/account/user.ts
parent30ff39e7f07898ebb716c938123825c678b4e5af (diff)
downloadPeerTube-503c6f440abc8f5924c38c4bd63591cb6cefacec.tar.gz
PeerTube-503c6f440abc8f5924c38c4bd63591cb6cefacec.tar.zst
PeerTube-503c6f440abc8f5924c38c4bd63591cb6cefacec.zip
Add peertube plugin index website models
Diffstat (limited to 'server/models/account/user.ts')
-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 6f0b0e00f..0041bf577 100644
--- a/server/models/account/user.ts
+++ b/server/models/account/user.ts
@@ -52,7 +52,7 @@ import { ActorModel } from '../activitypub/actor'
52import { ActorFollowModel } from '../activitypub/actor-follow' 52import { ActorFollowModel } from '../activitypub/actor-follow'
53import { VideoImportModel } from '../video/video-import' 53import { VideoImportModel } from '../video/video-import'
54import { UserAdminFlag } from '../../../shared/models/users/user-flag.model' 54import { UserAdminFlag } from '../../../shared/models/users/user-flag.model'
55import { isThemeValid } from '../../helpers/custom-validators/plugins' 55import { isThemeNameValid } from '../../helpers/custom-validators/plugins'
56import { getThemeOrDefault } from '../../lib/plugins/theme-utils' 56import { getThemeOrDefault } from '../../lib/plugins/theme-utils'
57 57
58enum ScopeNames { 58enum ScopeNames {
@@ -191,7 +191,7 @@ export class UserModel extends Model<UserModel> {
191 191
192 @AllowNull(false) 192 @AllowNull(false)
193 @Default(DEFAULT_THEME_NAME) 193 @Default(DEFAULT_THEME_NAME)
194 @Is('UserTheme', value => throwIfNotValid(value, isThemeValid, 'theme')) 194 @Is('UserTheme', value => throwIfNotValid(value, isThemeNameValid, 'theme'))
195 @Column 195 @Column
196 theme: string 196 theme: string
197 197