mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-12-24 08:44:02 +00:00
Update MediaDeletePipeline.php
This commit is contained in:
parent
8c21934842
commit
485c586ef2
1 changed files with 0 additions and 4 deletions
|
@ -38,12 +38,8 @@ class MediaDeletePipeline implements ShouldQueue
|
|||
|
||||
if(config_cache('pixelfed.cloud_storage') == true) {
|
||||
$disk = Storage::disk(config('filesystems.cloud'));
|
||||
if($disk->exists($path)) {
|
||||
$disk->delete($path);
|
||||
}
|
||||
if($disk->exists($thumb)) {
|
||||
$disk->delete($thumb);
|
||||
}
|
||||
|
||||
if(count($e) > 4 && count($disk->files($i)) == 0) {
|
||||
$disk->deleteDirectory($i);
|
||||
|
|
Loading…
Reference in a new issue