mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-05 02:39:33 +02:00
Use 3 tables to represent abuses
This commit is contained in:
parent
72493e44e9
commit
d95d155988
103 changed files with 2142 additions and 1167 deletions
|
@ -1,9 +1,9 @@
|
|||
import { isActivityPubUrlValid } from './misc'
|
||||
import { isVideoAbuseReasonValid } from '../video-abuses'
|
||||
import { isAbuseReasonValid } from '../abuses'
|
||||
|
||||
function isFlagActivityValid (activity: any) {
|
||||
return activity.type === 'Flag' &&
|
||||
isVideoAbuseReasonValid(activity.content) &&
|
||||
isAbuseReasonValid(activity.content) &&
|
||||
isActivityPubUrlValid(activity.object)
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue