diff options
author | Chocobozzz <me@florianbigard.com> | 2018-01-11 09:35:50 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-01-11 09:35:50 +0100 |
commit | 60650c77c8a2a98e92d869b237ae4900f369a8fc (patch) | |
tree | 7304a7591b5b23b99d219c4d06c6bd5c4c58c1c2 /server.ts | |
parent | 7ae71355c40e9065f83d3fc77b6750d1929ac201 (diff) | |
download | PeerTube-60650c77c8a2a98e92d869b237ae4900f369a8fc.tar.gz PeerTube-60650c77c8a2a98e92d869b237ae4900f369a8fc.tar.zst PeerTube-60650c77c8a2a98e92d869b237ae4900f369a8fc.zip |
Add scores to follows and remove bad ones
Diffstat (limited to 'server.ts')
-rw-r--r-- | server.ts | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -56,6 +56,7 @@ import { installApplication } from './server/initializers' | |||
56 | import { activitypubHttpJobScheduler, transcodingJobScheduler } from './server/lib/jobs' | 56 | import { activitypubHttpJobScheduler, transcodingJobScheduler } from './server/lib/jobs' |
57 | import { VideosPreviewCache } from './server/lib/cache' | 57 | import { VideosPreviewCache } from './server/lib/cache' |
58 | import { apiRouter, clientsRouter, staticRouter, servicesRouter, webfingerRouter, activityPubRouter } from './server/controllers' | 58 | import { apiRouter, clientsRouter, staticRouter, servicesRouter, webfingerRouter, activityPubRouter } from './server/controllers' |
59 | import { BadActorFollowScheduler } from './server/lib/schedulers/bad-actor-follow-scheduler' | ||
59 | 60 | ||
60 | // ----------- Command line ----------- | 61 | // ----------- Command line ----------- |
61 | 62 | ||
@@ -168,6 +169,8 @@ function onDatabaseInitDone () { | |||
168 | // ----------- Make the server listening ----------- | 169 | // ----------- Make the server listening ----------- |
169 | server.listen(port, () => { | 170 | server.listen(port, () => { |
170 | VideosPreviewCache.Instance.init(CONFIG.CACHE.PREVIEWS.SIZE) | 171 | VideosPreviewCache.Instance.init(CONFIG.CACHE.PREVIEWS.SIZE) |
172 | BadActorFollowScheduler.Instance.enable() | ||
173 | |||
171 | activitypubHttpJobScheduler.activate() | 174 | activitypubHttpJobScheduler.activate() |
172 | transcodingJobScheduler.activate() | 175 | transcodingJobScheduler.activate() |
173 | 176 | ||