|
@@ -33,7 +33,7 @@ class Kernel extends ConsoleKernel
|
|
$schedule->command('gc:passwordreset')->dailyAt('09:41');
|
|
$schedule->command('gc:passwordreset')->dailyAt('09:41');
|
|
$schedule->command('gc:sessions')->twiceDaily(13, 23);
|
|
$schedule->command('gc:sessions')->twiceDaily(13, 23);
|
|
|
|
|
|
- if(config('pixelfed.cloud_storage') && config('media.delete_local_after_cloud')) {
|
|
|
|
|
|
+ if(in_array(config_cache('pixelfed.cloud_storage'), ['1', true, 'true']) && config('media.delete_local_after_cloud')) {
|
|
$schedule->command('media:s3gc')->hourlyAt(15);
|
|
$schedule->command('media:s3gc')->hourlyAt(15);
|
|
}
|
|
}
|
|
}
|
|
}
|