Init commit
This commit is contained in:
5
server/core/helpers/custom-validators/bulk.ts
Normal file
5
server/core/helpers/custom-validators/bulk.ts
Normal file
@@ -0,0 +1,5 @@
|
||||
import { BulkRemoveCommentsOfBody } from '@peertube/peertube-models'
|
||||
|
||||
export function isBulkRemoveCommentsOfScopeValid (value: BulkRemoveCommentsOfBody['scope']) {
|
||||
return value === 'my-videos' || value === 'instance' || value === 'my-videos-and-collaborations'
|
||||
}
|
||||
Reference in New Issue
Block a user