]>
Commit | Line | Data |
---|---|---|
94148c90 C |
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 | } |