]>
Commit | Line | Data |
---|---|---|
94148c90 | 1 | import { Account } from '@app/shared/shared-main' |
33f6dce1 | 2 | import { AdminAbuse } from '@shared/models' |
94148c90 C |
3 | |
4 | // Don't use an abuse model because we need external services to compute some properties | |
5 | // And this model is only used in this component | |
6 | export type ProcessedAbuse = AdminAbuse & { | |
9df52d66 | 7 | moderationCommentHtml?: string |
94148c90 | 8 | reasonHtml?: string |
94148c90 C |
9 | updatedAt?: Date |
10 | ||
11 | // override bare server-side definitions with rich client-side definitions | |
12 | reporterAccount?: Account | |
13 | flaggedAccount?: Account | |
14 | ||
15 | truncatedCommentHtml?: string | |
16 | commentHtml?: string | |
17 | ||
18 | video: AdminAbuse['video'] & { | |
19 | channel: AdminAbuse['video']['channel'] & { | |
20 | ownerAccount: Account | |
21 | } | |
22 | } | |
23 | } |