From 1fa8adcd66f64050bfaa9b1cbebe5755cf27e3ce Mon Sep 17 00:00:00 2001 From: Philipp Holzer Date: Fri, 1 Mar 2019 13:06:23 +0100 Subject: [PATCH] Moving Model call outside Object Namespace --- fromgplus/fromgplus.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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); } }