This commit is contained in:
Daniel Supernault 2022-05-13 21:33:48 -06:00
parent c8014674c3
commit f6d1b0a24b
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7

View file

@ -38,8 +38,8 @@ class MediaDeletePipeline implements ShouldQueue
if(config_cache('pixelfed.cloud_storage') == true) {
$disk = Storage::disk(config('filesystems.cloud'));
$disk->delete($path);
$disk->delete($thumb);
$disk->delete($path);
$disk->delete($thumb);
if(count($e) > 4 && count($disk->files($i)) == 0) {
$disk->deleteDirectory($i);