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:
parent
07aea1a264
commit
1ebddadd07
35 changed files with 658 additions and 96 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue