diff options
author | Chocobozzz <me@florianbigard.com> | 2021-07-06 12:01:59 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2021-07-20 15:27:17 +0200 |
commit | 0c1a77e9ccf915184c431145a8b326d4ce271b46 (patch) | |
tree | 1cea60190ffd246d3b44c0dac457e9ebc99823a6 /shared/extra-utils/server/servers.ts | |
parent | 8ef9457fdee7812b1a8cc3b3bdeff94130819003 (diff) | |
download | PeerTube-0c1a77e9ccf915184c431145a8b326d4ce271b46.tar.gz PeerTube-0c1a77e9ccf915184c431145a8b326d4ce271b46.tar.zst PeerTube-0c1a77e9ccf915184c431145a8b326d4ce271b46.zip |
Introduce abuse command
Diffstat (limited to 'shared/extra-utils/server/servers.ts')
-rw-r--r-- | shared/extra-utils/server/servers.ts | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/shared/extra-utils/server/servers.ts b/shared/extra-utils/server/servers.ts index 4343eab93..f05f0dbbe 100644 --- a/shared/extra-utils/server/servers.ts +++ b/shared/extra-utils/server/servers.ts | |||
@@ -12,6 +12,7 @@ import { CustomPagesCommand } from '../custom-pages' | |||
12 | import { FeedCommand } from '../feeds' | 12 | import { FeedCommand } from '../feeds' |
13 | import { LogsCommand } from '../logs' | 13 | import { LogsCommand } from '../logs' |
14 | import { buildServerDirectory, getFileSize, isGithubCI, root, wait } from '../miscs/miscs' | 14 | import { buildServerDirectory, getFileSize, isGithubCI, root, wait } from '../miscs/miscs' |
15 | import { AbusesCommand } from '../moderation' | ||
15 | import { makeGetRequest } from '../requests/requests' | 16 | import { makeGetRequest } from '../requests/requests' |
16 | 17 | ||
17 | interface ServerInfo { | 18 | interface ServerInfo { |
@@ -71,6 +72,7 @@ interface ServerInfo { | |||
71 | customPageCommand?: CustomPagesCommand | 72 | customPageCommand?: CustomPagesCommand |
72 | feedCommand?: FeedCommand | 73 | feedCommand?: FeedCommand |
73 | logsCommand?: LogsCommand | 74 | logsCommand?: LogsCommand |
75 | abusesCommand?: AbusesCommand | ||
74 | } | 76 | } |
75 | 77 | ||
76 | function parallelTests () { | 78 | function parallelTests () { |
@@ -281,6 +283,7 @@ async function runServer (server: ServerInfo, configOverrideArg?: any, args = [] | |||
281 | server.customPageCommand = new CustomPagesCommand(server) | 283 | server.customPageCommand = new CustomPagesCommand(server) |
282 | server.feedCommand = new FeedCommand(server) | 284 | server.feedCommand = new FeedCommand(server) |
283 | server.logsCommand = new LogsCommand(server) | 285 | server.logsCommand = new LogsCommand(server) |
286 | server.abusesCommand = new AbusesCommand(server) | ||
284 | 287 | ||
285 | res(server) | 288 | res(server) |
286 | }) | 289 | }) |