mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-02-25 18:55:32 -06:00
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:
@@ -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
|
||||
|
||||
@@ -1,5 +1,10 @@
|
||||
import { ActivityFlagReasonObject } from './common-objects'
|
||||
|
||||
export interface VideoAbuseObject {
|
||||
type: 'Flag'
|
||||
content: string
|
||||
object: string | string[]
|
||||
tag?: ActivityFlagReasonObject[]
|
||||
startAt?: number
|
||||
endAt?: number
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user