mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2025-07-16 13:28:49 +00:00
Moving Model call outside Object Namespace
This commit is contained in:
parent
50dc31de87
commit
1fa8adcd66
1 changed files with 3 additions and 2 deletions
|
@ -20,6 +20,7 @@ use Friendica\Object\Image;
|
||||||
use Friendica\Util\DateTimeFormat;
|
use Friendica\Util\DateTimeFormat;
|
||||||
use Friendica\Util\Network;
|
use Friendica\Util\Network;
|
||||||
use Friendica\Model\Item;
|
use Friendica\Model\Item;
|
||||||
|
use Friendica\Model\Photo;
|
||||||
|
|
||||||
require_once 'mod/share.php';
|
require_once 'mod/share.php';
|
||||||
require_once 'mod/parse_url.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);
|
$images = fromgplus_cleanupgoogleproxy($attachment->fullImage, $attachment->image);
|
||||||
} else {
|
} else {
|
||||||
if ($attachment->fullImage->url != "") {
|
if ($attachment->fullImage->url != "") {
|
||||||
$images = Image::storePhoto($a, $uid, "", $attachment->fullImage->url);
|
$images = Photo::storePhoto($a, $uid, "", $attachment->fullImage->url);
|
||||||
} elseif ($attachment->image->url != "") {
|
} elseif ($attachment->image->url != "") {
|
||||||
$images = Image::storePhoto($a, $uid, "", $attachment->image->url);
|
$images = Photo::storePhoto($a, $uid, "", $attachment->image->url);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue