PeerTube/shared/models/videos/abuse/video-abuse.model.ts

34 lines
707 B
TypeScript
Raw Normal View History

2018-08-14 07:59:53 -05:00
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'
2018-03-12 05:29:46 -05:00
2017-06-10 15:15:25 -05:00
export interface VideoAbuse {
id: number
reason: string
2018-03-12 05:29:46 -05:00
reporterAccount: Account
state: VideoConstant<VideoAbuseState>
moderationComment?: string
2018-03-12 05:29:46 -05:00
video: {
id: number
name: string
uuid: string
nsfw: boolean
deleted: boolean
blacklisted: boolean
thumbnailPath?: string
channel?: VideoChannel
2018-03-12 05:29:46 -05:00
}
2017-06-10 15:15:25 -05:00
createdAt: Date
updatedAt: Date
count?: number
nth?: number
countReportsForReporter?: number
countReportsForReportee?: number
2017-06-10 15:15:25 -05:00
}