client/src/app/shared/shared-abuse-list/processed-abuse.model.ts
import { AdminAbuse } from '@peertube/peertube-models'
import { Account } from '../shared-main/account/account.model'
// Don't use an abuse model because we need external services to compute some properties
// And this model is only used in this component
export type ProcessedAbuse = AdminAbuse & {
moderationCommentHtml?: string
reasonHtml?: string
updatedAt?: Date
// override bare server-side definitions with rich client-side definitions
reporterAccount?: Account
flaggedAccount?: Account
commentHTML?: string
video: AdminAbuse['video'] & {
channel: AdminAbuse['video']['channel'] & {
ownerAccount: Account
}
}
}