aboutsummaryrefslogtreecommitdiffhomepage
path: root/shared/extra-utils/moderation/abuses-command.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2021-07-29 10:27:24 +0200
committerChocobozzz <me@florianbigard.com>2021-07-29 10:27:24 +0200
commitb033851fb54241bb703f86add025229e68cc6f59 (patch)
treed60dac1499a95bf9dc902dee24f325fe0f8b6acb /shared/extra-utils/moderation/abuses-command.ts
parentfbd67e7f386504e50f2504cb6386700a58906f16 (diff)
downloadPeerTube-b033851fb54241bb703f86add025229e68cc6f59.tar.gz
PeerTube-b033851fb54241bb703f86add025229e68cc6f59.tar.zst
PeerTube-b033851fb54241bb703f86add025229e68cc6f59.zip
Search channels against handles and not names
Diffstat (limited to 'shared/extra-utils/moderation/abuses-command.ts')
-rw-r--r--shared/extra-utils/moderation/abuses-command.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/shared/extra-utils/moderation/abuses-command.ts b/shared/extra-utils/moderation/abuses-command.ts
index 7b3abb056..0db32ba46 100644
--- a/shared/extra-utils/moderation/abuses-command.ts
+++ b/shared/extra-utils/moderation/abuses-command.ts
@@ -1,4 +1,4 @@
1import { pick } from 'lodash' 1import { pick } from '@shared/core-utils'
2import { 2import {
3 AbuseFilter, 3 AbuseFilter,
4 AbuseMessage, 4 AbuseMessage,
@@ -81,7 +81,7 @@ export class AbusesCommand extends AbstractCommand {
81 searchVideo?: string 81 searchVideo?: string
82 searchVideoChannel?: string 82 searchVideoChannel?: string
83 } = {}) { 83 } = {}) {
84 const toPick = [ 84 const toPick: (keyof typeof options)[] = [
85 'count', 85 'count',
86 'filter', 86 'filter',
87 'id', 87 'id',
@@ -121,7 +121,7 @@ export class AbusesCommand extends AbstractCommand {
121 search?: string 121 search?: string
122 state?: AbuseState 122 state?: AbuseState
123 }) { 123 }) {
124 const toPick = [ 124 const toPick: (keyof typeof options)[] = [
125 'id', 125 'id',
126 'search', 126 'search',
127 'state', 127 'state',