forked from friendica/friendica-addons
Fix broken images that have been broken for ages
This commit is contained in:
parent
8e96300d1b
commit
fb944ccc06
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue