diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2017-04-04 21:37:03 +0200 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2017-04-04 21:37:03 +0200 |
commit | 92fb909c9b4a92a00b0d0da7629e6fb003de281b (patch) | |
tree | 8119c6720d5dec0474983501843f1e699fde150a /client/src/app/shared | |
parent | 1d49e1e27d63db1dfc9a7fd28c9902f488831a89 (diff) | |
download | PeerTube-92fb909c9b4a92a00b0d0da7629e6fb003de281b.tar.gz PeerTube-92fb909c9b4a92a00b0d0da7629e6fb003de281b.tar.zst PeerTube-92fb909c9b4a92a00b0d0da7629e6fb003de281b.zip |
Client: Handle NSFW video
Diffstat (limited to 'client/src/app/shared')
-rw-r--r-- | client/src/app/shared/users/user.model.ts | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/client/src/app/shared/users/user.model.ts b/client/src/app/shared/users/user.model.ts index 52d89e004..f7859f495 100644 --- a/client/src/app/shared/users/user.model.ts +++ b/client/src/app/shared/users/user.model.ts | |||
@@ -2,12 +2,20 @@ export class User { | |||
2 | id: number; | 2 | id: number; |
3 | username: string; | 3 | username: string; |
4 | role: string; | 4 | role: string; |
5 | displayNSFW: boolean; | ||
5 | createdAt: Date; | 6 | createdAt: Date; |
6 | 7 | ||
7 | constructor(hash: { id: number, username: string, role: string, createdAt?: Date }) { | 8 | constructor(hash: { |
9 | id: number, | ||
10 | username: string, | ||
11 | role: string, | ||
12 | displayNSFW?: boolean, | ||
13 | createdAt?: Date, | ||
14 | }) { | ||
8 | this.id = hash.id; | 15 | this.id = hash.id; |
9 | this.username = hash.username; | 16 | this.username = hash.username; |
10 | this.role = hash.role; | 17 | this.role = hash.role; |
18 | this.displayNSFW = hash.displayNSFW; | ||
11 | 19 | ||
12 | if (hash.createdAt) { | 20 | if (hash.createdAt) { |
13 | this.createdAt = hash.createdAt; | 21 | this.createdAt = hash.createdAt; |