]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blob - client/src/app/shared/shared-abuse-list/processed-abuse.model.ts
b9a9bd889dd7e47674e56656b1c3eb62e4d2c655
[github/Chocobozzz/PeerTube.git] / client / src / app / shared / shared-abuse-list / processed-abuse.model.ts
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 }