Skip to content

ActivityPub-federated video streaming platform using P2P directly in your web browser

757 B
Raw Blame
import { SafeHtml } from '@angular/platform-browser'
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 = Omit<AdminAbuse, 'reporterAccount' | 'flaggedAccount'> & {
  moderationCommentHtml?: SafeHtml
  reasonHtml?: SafeHtml
  updatedAt?: Date

  // override bare server-side definitions with rich client-side definitions
  reporterAccount?: Account
  flaggedAccount?: Account

  commentHTML?: SafeHtml

  video: AdminAbuse['video'] & {
    channel: AdminAbuse['video']['channel'] & {
      ownerAccount: Account
    }
  }
}