From 92fb909c9b4a92a00b0d0da7629e6fb003de281b Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Tue, 4 Apr 2017 21:37:03 +0200 Subject: Client: Handle NSFW video --- client/src/app/shared/users/user.model.ts | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'client/src/app/shared') 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 { id: number; username: string; role: string; + displayNSFW: boolean; createdAt: Date; - constructor(hash: { id: number, username: string, role: string, createdAt?: Date }) { + constructor(hash: { + id: number, + username: string, + role: string, + displayNSFW?: boolean, + createdAt?: Date, + }) { this.id = hash.id; this.username = hash.username; this.role = hash.role; + this.displayNSFW = hash.displayNSFW; if (hash.createdAt) { this.createdAt = hash.createdAt; -- cgit v1.2.3