diff options
author | Chocobozzz <me@florianbigard.com> | 2018-10-15 16:43:14 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-10-16 16:41:36 +0200 |
commit | 65b21c961c69c4a63c7c0c34be3d6d034a1176c7 (patch) | |
tree | 35ec4a16c90a1de99b2865fbabb368b683ca6c87 /client/src/app/shared/account | |
parent | b44164bb567fe7c9f65f1ac2908d44990a8ccc8e (diff) | |
download | PeerTube-65b21c961c69c4a63c7c0c34be3d6d034a1176c7.tar.gz PeerTube-65b21c961c69c4a63c7c0c34be3d6d034a1176c7.tar.zst PeerTube-65b21c961c69c4a63c7c0c34be3d6d034a1176c7.zip |
Add ability to mute a user/instance by server in client
Diffstat (limited to 'client/src/app/shared/account')
-rw-r--r-- | client/src/app/shared/account/account.model.ts | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/client/src/app/shared/account/account.model.ts b/client/src/app/shared/account/account.model.ts index 0aba9428a..c5cd2051c 100644 --- a/client/src/app/shared/account/account.model.ts +++ b/client/src/app/shared/account/account.model.ts | |||
@@ -5,8 +5,10 @@ export class Account extends Actor implements ServerAccount { | |||
5 | displayName: string | 5 | displayName: string |
6 | description: string | 6 | description: string |
7 | nameWithHost: string | 7 | nameWithHost: string |
8 | muted: boolean | 8 | mutedByUser: boolean |
9 | mutedServer: boolean | 9 | mutedByInstance: boolean |
10 | mutedServerByUser: boolean | ||
11 | mutedServerByInstance: boolean | ||
10 | 12 | ||
11 | userId?: number | 13 | userId?: number |
12 | 14 | ||
@@ -18,7 +20,9 @@ export class Account extends Actor implements ServerAccount { | |||
18 | this.userId = hash.userId | 20 | this.userId = hash.userId |
19 | this.nameWithHost = Actor.CREATE_BY_STRING(this.name, this.host) | 21 | this.nameWithHost = Actor.CREATE_BY_STRING(this.name, this.host) |
20 | 22 | ||
21 | this.muted = false | 23 | this.mutedByUser = false |
22 | this.mutedServer = false | 24 | this.mutedByInstance = false |
25 | this.mutedServerByUser = false | ||
26 | this.mutedServerByInstance = false | ||
23 | } | 27 | } |
24 | } | 28 | } |