diff options
author | Chocobozzz <me@florianbigard.com> | 2021-07-29 10:27:24 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2021-07-29 10:27:24 +0200 |
commit | b033851fb54241bb703f86add025229e68cc6f59 (patch) | |
tree | d60dac1499a95bf9dc902dee24f325fe0f8b6acb /shared/extra-utils/moderation | |
parent | fbd67e7f386504e50f2504cb6386700a58906f16 (diff) | |
download | PeerTube-b033851fb54241bb703f86add025229e68cc6f59.tar.gz PeerTube-b033851fb54241bb703f86add025229e68cc6f59.tar.zst PeerTube-b033851fb54241bb703f86add025229e68cc6f59.zip |
Search channels against handles and not names
Diffstat (limited to 'shared/extra-utils/moderation')
-rw-r--r-- | shared/extra-utils/moderation/abuses-command.ts | 6 |
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 @@ | |||
1 | import { pick } from 'lodash' | 1 | import { pick } from '@shared/core-utils' |
2 | import { | 2 | import { |
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', |