From 444c0a0e017824fb4ce526281a22c4abe0a13c50 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Thu, 14 May 2020 16:56:15 +0200 Subject: Add ability to bulk delete comments --- server/helpers/custom-validators/bulk.ts | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 server/helpers/custom-validators/bulk.ts (limited to 'server/helpers/custom-validators') diff --git a/server/helpers/custom-validators/bulk.ts b/server/helpers/custom-validators/bulk.ts new file mode 100644 index 000000000..9e0ce0be1 --- /dev/null +++ b/server/helpers/custom-validators/bulk.ts @@ -0,0 +1,9 @@ +function isBulkRemoveCommentsOfScopeValid (value: string) { + return value === 'my-videos' || value === 'instance' +} + +// --------------------------------------------------------------------------- + +export { + isBulkRemoveCommentsOfScopeValid +} -- cgit v1.2.3