Moving Model call outside Object Namespace

This commit is contained in:
Philipp Holzer 2019-03-01 13:06:23 +01:00
parent 50dc31de87
commit 1fa8adcd66
No known key found for this signature in database
GPG key ID: 517BE60E2CE5C8A5

View file

@ -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);
}
}