diff options
author | Chocobozzz <me@florianbigard.com> | 2018-04-19 11:01:34 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-04-19 11:01:34 +0200 |
commit | 0883b3245bf0deb9106c4041e9afbd3521b79280 (patch) | |
tree | fcb73005e0b31a3b763ee5d22d5fc39c2da89907 /shared/models/users/user.model.ts | |
parent | 04ed10b21e8e1339514faae0bb690e4d97c23b0a (diff) | |
download | PeerTube-0883b3245bf0deb9106c4041e9afbd3521b79280.tar.gz PeerTube-0883b3245bf0deb9106c4041e9afbd3521b79280.tar.zst PeerTube-0883b3245bf0deb9106c4041e9afbd3521b79280.zip |
Add ability to choose what policy we have for NSFW videos
There is a global instance setting and a per user setting
Diffstat (limited to 'shared/models/users/user.model.ts')
-rw-r--r-- | shared/models/users/user.model.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/shared/models/users/user.model.ts b/shared/models/users/user.model.ts index b5f459f31..188e29ede 100644 --- a/shared/models/users/user.model.ts +++ b/shared/models/users/user.model.ts | |||
@@ -1,12 +1,13 @@ | |||
1 | import { Account } from '../actors' | 1 | import { Account } from '../actors' |
2 | import { VideoChannel } from '../videos/video-channel.model' | 2 | import { VideoChannel } from '../videos/video-channel.model' |
3 | import { UserRole } from './user-role' | 3 | import { UserRole } from './user-role' |
4 | import { NSFWPolicyType } from '../videos/nsfw-policy.type' | ||
4 | 5 | ||
5 | export interface User { | 6 | export interface User { |
6 | id: number | 7 | id: number |
7 | username: string | 8 | username: string |
8 | email: string | 9 | email: string |
9 | displayNSFW: boolean | 10 | nsfwPolicy: NSFWPolicyType |
10 | autoPlayVideo: boolean | 11 | autoPlayVideo: boolean |
11 | role: UserRole | 12 | role: UserRole |
12 | videoQuota: number | 13 | videoQuota: number |