aboutsummaryrefslogtreecommitdiffhomepage
path: root/shared/extra-utils/server/servers.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2021-07-06 12:01:59 +0200
committerChocobozzz <me@florianbigard.com>2021-07-20 15:27:17 +0200
commit0c1a77e9ccf915184c431145a8b326d4ce271b46 (patch)
tree1cea60190ffd246d3b44c0dac457e9ebc99823a6 /shared/extra-utils/server/servers.ts
parent8ef9457fdee7812b1a8cc3b3bdeff94130819003 (diff)
downloadPeerTube-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.ts3
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'
12import { FeedCommand } from '../feeds' 12import { FeedCommand } from '../feeds'
13import { LogsCommand } from '../logs' 13import { LogsCommand } from '../logs'
14import { buildServerDirectory, getFileSize, isGithubCI, root, wait } from '../miscs/miscs' 14import { buildServerDirectory, getFileSize, isGithubCI, root, wait } from '../miscs/miscs'
15import { AbusesCommand } from '../moderation'
15import { makeGetRequest } from '../requests/requests' 16import { makeGetRequest } from '../requests/requests'
16 17
17interface ServerInfo { 18interface 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
76function parallelTests () { 78function 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 })