aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/lib
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2021-10-13 08:44:34 +0200
committerChocobozzz <me@florianbigard.com>2021-10-13 08:44:34 +0200
commitd41a3805502fdec0d6a075027e447b7b39b09c2b (patch)
treefe120975a25dc5adb44bf0a3c467958d9c8cfec8 /server/lib
parent87699a09ce714ceb79dbd846fac0de37a57fe6e3 (diff)
downloadPeerTube-d41a3805502fdec0d6a075027e447b7b39b09c2b.tar.gz
PeerTube-d41a3805502fdec0d6a075027e447b7b39b09c2b.tar.zst
PeerTube-d41a3805502fdec0d6a075027e447b7b39b09c2b.zip
Fix check after init script
Diffstat (limited to 'server/lib')
-rw-r--r--server/lib/files-cache/actor-follow-score-cache.ts5
1 files changed, 4 insertions, 1 deletions
diff --git a/server/lib/files-cache/actor-follow-score-cache.ts b/server/lib/files-cache/actor-follow-score-cache.ts
index 086605726..465080e72 100644
--- a/server/lib/files-cache/actor-follow-score-cache.ts
+++ b/server/lib/files-cache/actor-follow-score-cache.ts
@@ -19,7 +19,10 @@ class ActorFollowScoreCache {
19 updateActorFollowsScore (goodInboxes: string[], badInboxes: string[]) { 19 updateActorFollowsScore (goodInboxes: string[], badInboxes: string[]) {
20 if (goodInboxes.length === 0 && badInboxes.length === 0) return 20 if (goodInboxes.length === 0 && badInboxes.length === 0) return
21 21
22 logger.info('Updating %d good actor follows and %d bad actor follows scores in cache.', goodInboxes.length, badInboxes.length) 22 logger.info(
23 'Updating %d good actor follows and %d bad actor follows scores in cache.',
24 goodInboxes.length, badInboxes.length, { badInboxes }
25 )
23 26
24 for (const goodInbox of goodInboxes) { 27 for (const goodInbox of goodInboxes) {
25 if (this.pendingFollowsScore[goodInbox] === undefined) this.pendingFollowsScore[goodInbox] = 0 28 if (this.pendingFollowsScore[goodInbox] === undefined) this.pendingFollowsScore[goodInbox] = 0