Skip to content

Commit

Permalink
Update VoyagerMediaController.php
Browse files Browse the repository at this point in the history
In MediaPicker, hide thumbnails generated when the property thumbnails is defined in the BREAD.
  • Loading branch information
toto975 authored Aug 9, 2024
1 parent 36b9977 commit cbef6de
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Http/Controllers/VoyagerMediaController.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,7 @@ public function files(Request $request)
continue;
}
// Its a thumbnail and thumbnails should be hidden
if (Str::endsWith($item['path'], $thumbnail_names)) {
$thumbnails[] = $item;
if (Str::endsWith(pathinfo($item['path'])['filename'], $thumbnail_names)) {
continue;
}
$mime = 'file';
Expand Down

0 comments on commit cbef6de

Please sign in to comment.