]>
Commit | Line | Data |
---|---|---|
1 | import { Account } from '@app/shared/shared-main' | |
2 | import { AdminAbuse } from '@shared/models' | |
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 & { | |
7 | moderationCommentHtml?: string | |
8 | reasonHtml?: string | |
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 | } |