mirror of
https://github.com/ad-aures/castopod.git
synced 2026-04-15 20:47:46 +02:00
fix: allow images to have .jpeg extension consistently
This commit is contained in:
parent
208c2715f9
commit
ae5e12be3b
4 changed files with 13 additions and 10 deletions
|
|
@ -136,7 +136,10 @@ class S3 implements FileManagerInterface
|
|||
|
||||
$prefixedPodcasts = $this->prefixKey('podcasts');
|
||||
|
||||
array_push($keys, ...preg_grep("~^{$prefixedPodcasts}\/{$podcastHandle}\/.*_.*.\.(jpg|png|webp)$~", $key));
|
||||
array_push(
|
||||
$keys,
|
||||
...preg_grep("~^{$prefixedPodcasts}\/{$podcastHandle}\/.*_.*.\.(jpe?g|png|webp)$~", $key)
|
||||
);
|
||||
}
|
||||
|
||||
$objectsToDelete = array_map(static function ($key): array {
|
||||
|
|
@ -178,7 +181,7 @@ class S3 implements FileManagerInterface
|
|||
|
||||
$prefixedPersons = $this->prefixKey('persons');
|
||||
|
||||
array_push($keys, ...preg_grep("~^{$prefixedPersons}\/.*_.*.\.(jpg|png|webp)$~", $key));
|
||||
array_push($keys, ...preg_grep("~^{$prefixedPersons}\/.*_.*.\.(jpe?g|png|webp)$~", $key));
|
||||
}
|
||||
|
||||
$objectsToDelete = array_map(static function ($key): array {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue