
- added `startAt` and `endAt` optional timestamps to help pin down reported sections of a video - added predefined report reasons - added video player with report modal
38 lines
879 B
TypeScript
38 lines
879 B
TypeScript
import { Account } from '../../actors/index'
|
|
import { VideoConstant } from '../video-constant.model'
|
|
import { VideoAbuseState } from './video-abuse-state.model'
|
|
import { VideoChannel } from '../channel/video-channel.model'
|
|
import { VideoAbusePredefinedReasonsString } from './video-abuse-reason.model'
|
|
|
|
export interface VideoAbuse {
|
|
id: number
|
|
reason: string
|
|
predefinedReasons?: VideoAbusePredefinedReasonsString[]
|
|
reporterAccount: Account
|
|
|
|
state: VideoConstant<VideoAbuseState>
|
|
moderationComment?: string
|
|
|
|
video: {
|
|
id: number
|
|
name: string
|
|
uuid: string
|
|
nsfw: boolean
|
|
deleted: boolean
|
|
blacklisted: boolean
|
|
thumbnailPath?: string
|
|
channel?: VideoChannel
|
|
}
|
|
|
|
createdAt: Date
|
|
updatedAt: Date
|
|
|
|
startAt: number
|
|
endAt: number
|
|
|
|
count?: number
|
|
nth?: number
|
|
|
|
countReportsForReporter?: number
|
|
countReportsForReportee?: number
|
|
}
|