diff options
author | Chocobozzz <me@florianbigard.com> | 2020-07-27 11:40:30 +0200 |
---|---|---|
committer | Chocobozzz <chocobozzz@cpy.re> | 2020-07-31 11:35:19 +0200 |
commit | 94148c9028829b5576a5dcbfba2c7fb9cf6443d3 (patch) | |
tree | 2774f272329111abd03e8441ff936da11fb1a3f3 /client/src/app/shared/shared-abuse-list/processed-abuse.model.ts | |
parent | 441e453ae53e491b09c9b09b00b041788176ce64 (diff) | |
download | PeerTube-94148c9028829b5576a5dcbfba2c7fb9cf6443d3.tar.gz PeerTube-94148c9028829b5576a5dcbfba2c7fb9cf6443d3.tar.zst PeerTube-94148c9028829b5576a5dcbfba2c7fb9cf6443d3.zip |
Add abuse messages management in my account
Diffstat (limited to 'client/src/app/shared/shared-abuse-list/processed-abuse.model.ts')
-rw-r--r-- | client/src/app/shared/shared-abuse-list/processed-abuse.model.ts | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/client/src/app/shared/shared-abuse-list/processed-abuse.model.ts b/client/src/app/shared/shared-abuse-list/processed-abuse.model.ts new file mode 100644 index 000000000..fce1a8db3 --- /dev/null +++ b/client/src/app/shared/shared-abuse-list/processed-abuse.model.ts | |||
@@ -0,0 +1,25 @@ | |||
1 | import { SafeHtml } from '@angular/platform-browser' | ||
2 | import { AdminAbuse } from '@shared/models' | ||
3 | import { Account } from '@app/shared/shared-main' | ||
4 | |||
5 | // Don't use an abuse model because we need external services to compute some properties | ||
6 | // And this model is only used in this component | ||
7 | export type ProcessedAbuse = AdminAbuse & { | ||
8 | moderationCommentHtml?: string, | ||
9 | reasonHtml?: string | ||
10 | embedHtml?: SafeHtml | ||
11 | updatedAt?: Date | ||
12 | |||
13 | // override bare server-side definitions with rich client-side definitions | ||
14 | reporterAccount?: Account | ||
15 | flaggedAccount?: Account | ||
16 | |||
17 | truncatedCommentHtml?: string | ||
18 | commentHtml?: string | ||
19 | |||
20 | video: AdminAbuse['video'] & { | ||
21 | channel: AdminAbuse['video']['channel'] & { | ||
22 | ownerAccount: Account | ||
23 | } | ||
24 | } | ||
25 | } | ||