1
0
Fork 0
mirror of https://github.com/Chocobozzz/PeerTube.git synced 2025-10-05 19:42:24 +02:00

Fix check after init script

This commit is contained in:
Chocobozzz 2021-10-13 08:44:34 +02:00
parent 87699a09ce
commit d41a380550
No known key found for this signature in database
GPG key ID: 583A612D890159BE
2 changed files with 10 additions and 7 deletions

View file

@ -19,7 +19,10 @@ class ActorFollowScoreCache {
updateActorFollowsScore (goodInboxes: string[], badInboxes: string[]) {
if (goodInboxes.length === 0 && badInboxes.length === 0) return
logger.info('Updating %d good actor follows and %d bad actor follows scores in cache.', goodInboxes.length, badInboxes.length)
logger.info(
'Updating %d good actor follows and %d bad actor follows scores in cache.',
goodInboxes.length, badInboxes.length, { badInboxes }
)
for (const goodInbox of goodInboxes) {
if (this.pendingFollowsScore[goodInbox] === undefined) this.pendingFollowsScore[goodInbox] = 0