]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - 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
94148c90 1import { Account } from '@app/shared/shared-main'
33f6dce1 2import { 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
6export 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}