Fix broken images that have been broken for ages

This commit is contained in:
Matthew Exon 2024-06-20 20:31:07 +01:00 committed by Matthew Exon
parent 8e96300d1b
commit fb944ccc06

View file

@ -829,7 +829,7 @@ function retriever_transform_images(array &$item, array $resource) {
Logger::error('retriever_transform_images: unable to store photo ' . $resource['url'] . ' error: ' . $e->getMessage());
return;
}
$new_url = DI::baseUrl() . '/photo/' . $rid . '-0.' . $image->getExt();
$new_url = DI::baseUrl() . '/photo/' . $rid . '-0' . $image->getExt();
if (!strlen($new_url)) {
Logger::warning('retriever_transform_images: no replacement URL for image ' . $resource['url']);
return;