mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2025-09-13 19:43:00 +00:00
Fix broken images that have been broken for ages
This commit is contained in:
parent
5b88c3a879
commit
5ea8dca4c4
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…
Add table
Add a link
Reference in a new issue