mirror of
https://github.com/friendica/friendica
synced 2024-12-23 05:20:15 +00:00
Simplyfied picture fetching
This commit is contained in:
parent
2647514603
commit
fa00a4ee32
1 changed files with 1 additions and 1 deletions
|
@ -185,7 +185,7 @@ class Images
|
|||
}
|
||||
|
||||
if (Network::isLocalLink($url) && ($data = Photo::getResourceData($url))) {
|
||||
$photo = Photo::getPhoto($data['guid'], $data['scale']);
|
||||
$photo = Photo::selectFirst([], ['resource-id' => $data['guid'], 'scale' => $data['scale']]);
|
||||
if (!empty($photo)) {
|
||||
$img_str = Photo::getImageDataForPhoto($photo);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue