forked from friendica/friendica-addons
Fix broken images that have been broken for ages
This commit is contained in:
parent
8e96300d1b
commit
fb944ccc06
1 changed files with 1 additions and 1 deletions
|
@ -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());
|
Logger::error('retriever_transform_images: unable to store photo ' . $resource['url'] . ' error: ' . $e->getMessage());
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
$new_url = DI::baseUrl() . '/photo/' . $rid . '-0.' . $image->getExt();
|
$new_url = DI::baseUrl() . '/photo/' . $rid . '-0' . $image->getExt();
|
||||||
if (!strlen($new_url)) {
|
if (!strlen($new_url)) {
|
||||||
Logger::warning('retriever_transform_images: no replacement URL for image ' . $resource['url']);
|
Logger::warning('retriever_transform_images: no replacement URL for image ' . $resource['url']);
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in a new issue