]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame_incremental - client/src/app/shared/shared-abuse-list/processed-abuse.model.ts
Add ability to bulk block videos
[github/Chocobozzz/PeerTube.git] / client / src / app / shared / shared-abuse-list / processed-abuse.model.ts
... / ...
CommitLineData
1import { Account } from '@app/shared/shared-main'
2import { 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
6export 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}