diff --git a/fromgplus/fromgplus.php b/fromgplus/fromgplus.php index 245766dd..4e0de3f9 100644 --- a/fromgplus/fromgplus.php +++ b/fromgplus/fromgplus.php @@ -20,6 +20,7 @@ use Friendica\Object\Image; use Friendica\Util\DateTimeFormat; use Friendica\Util\Network; use Friendica\Model\Item; +use Friendica\Model\Photo; require_once 'mod/share.php'; require_once 'mod/parse_url.php'; @@ -361,9 +362,9 @@ function fromgplus_handleattachments($a, $uid, $item, $displaytext, $shared) { $images = fromgplus_cleanupgoogleproxy($attachment->fullImage, $attachment->image); } else { if ($attachment->fullImage->url != "") { - $images = Image::storePhoto($a, $uid, "", $attachment->fullImage->url); + $images = Photo::storePhoto($a, $uid, "", $attachment->fullImage->url); } elseif ($attachment->image->url != "") { - $images = Image::storePhoto($a, $uid, "", $attachment->image->url); + $images = Photo::storePhoto($a, $uid, "", $attachment->image->url); } }