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

Don't fail on upload if we cannot generate thumbnail

This commit is contained in:
Chocobozzz 2018-02-27 13:46:56 +01:00
parent 266707202c
commit 6fdc553adb
No known key found for this signature in database
GPG key ID: 583A612D890159BE
3 changed files with 27 additions and 12 deletions

View file

@ -1,3 +1,4 @@
import { isTestInstance } from '../../helpers/core-utils'
import { logger } from '../../helpers/logger'
import { ActorFollowModel } from '../../models/activitypub/actor-follow'
import { AbstractScheduler } from './abstract-scheduler'
@ -11,7 +12,7 @@ export class BadActorFollowScheduler extends AbstractScheduler {
}
async execute () {
logger.info('Removing bad actor follows (scheduler).')
if (!isTestInstance()) logger.info('Removing bad actor follows (scheduler).')
try {
await ActorFollowModel.removeBadActorFollows()