predefined report reasons & improved reporter UI (#2842)

- 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
This commit is contained in:
Rigel Kent 2020-06-22 13:00:39 +02:00 committed by GitHub
parent 07aea1a264
commit 1ebddadd07
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
35 changed files with 658 additions and 96 deletions

View file

@ -1,3 +1,5 @@
import { VideoAbusePredefinedReasonsString } from '@shared/models/videos'
export interface ActivityIdentifierObject {
identifier: string
name: string
@ -70,17 +72,22 @@ export type ActivityHtmlUrlObject = {
}
export interface ActivityHashTagObject {
type: 'Hashtag' | 'Mention'
type: 'Hashtag'
href?: string
name: string
}
export interface ActivityMentionObject {
type: 'Hashtag' | 'Mention'
type: 'Mention'
href?: string
name: string
}
export interface ActivityFlagReasonObject {
type: 'Hashtag'
name: VideoAbusePredefinedReasonsString
}
export type ActivityTagObject =
ActivityPlaylistSegmentHashesObject
| ActivityPlaylistInfohashesObject