diff options
author | Chocobozzz <me@florianbigard.com> | 2019-07-15 15:41:56 +0200 |
---|---|---|
committer | Chocobozzz <chocobozzz@cpy.re> | 2019-07-24 10:58:16 +0200 |
commit | 503c6f440abc8f5924c38c4bd63591cb6cefacec (patch) | |
tree | f369e338d3f6c4c0af574b234b8c53d368350fa5 /server/models/account/user.ts | |
parent | 30ff39e7f07898ebb716c938123825c678b4e5af (diff) | |
download | PeerTube-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.ts | 4 |
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' | |||
52 | import { ActorFollowModel } from '../activitypub/actor-follow' | 52 | import { ActorFollowModel } from '../activitypub/actor-follow' |
53 | import { VideoImportModel } from '../video/video-import' | 53 | import { VideoImportModel } from '../video/video-import' |
54 | import { UserAdminFlag } from '../../../shared/models/users/user-flag.model' | 54 | import { UserAdminFlag } from '../../../shared/models/users/user-flag.model' |
55 | import { isThemeValid } from '../../helpers/custom-validators/plugins' | 55 | import { isThemeNameValid } from '../../helpers/custom-validators/plugins' |
56 | import { getThemeOrDefault } from '../../lib/plugins/theme-utils' | 56 | import { getThemeOrDefault } from '../../lib/plugins/theme-utils' |
57 | 57 | ||
58 | enum ScopeNames { | 58 | enum 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 | ||