mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2024-12-23 01:20:17 +00:00
Update Function call
update function call for Photo class.
This commit is contained in:
parent
7b6bc4777c
commit
797f0c4ca2
1 changed files with 9 additions and 7 deletions
|
@ -349,13 +349,14 @@ function fromgplus_handleattachments($a, $uid, $item, $displaytext, $shared) {
|
||||||
|
|
||||||
case "photo":
|
case "photo":
|
||||||
// Don't store shared pictures in your wall photos (to prevent a possible violating of licenses)
|
// Don't store shared pictures in your wall photos (to prevent a possible violating of licenses)
|
||||||
if ($shared)
|
if ($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 = store_photo($a, $uid, "", $attachment->fullImage->url);
|
$images = Photo::storePhoto($a, $uid, "", $attachment->fullImage->url);
|
||||||
elseif ($attachment->image->url != "")
|
} elseif ($attachment->image->url != "") {
|
||||||
$images = store_photo($a, $uid, "", $attachment->image->url);
|
$images = Photo::storePhoto($a, $uid, "", $attachment->image->url);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($images["preview"] != "") {
|
if ($images["preview"] != "") {
|
||||||
|
@ -366,8 +367,9 @@ function fromgplus_handleattachments($a, $uid, $item, $displaytext, $shared) {
|
||||||
$post .= "\n[img]".$images["full"]."[/img]\n";
|
$post .= "\n[img]".$images["full"]."[/img]\n";
|
||||||
$pagedata["images"][0]["src"] = $images["full"];
|
$pagedata["images"][0]["src"] = $images["full"];
|
||||||
|
|
||||||
if ($images["preview"] != "")
|
if ($images["preview"] != "") {
|
||||||
$pagedata["images"][1]["src"] = $images["preview"];
|
$pagedata["images"][1]["src"] = $images["preview"];
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (($attachment->displayName != "") && (fromgplus_cleantext($attachment->displayName) != fromgplus_cleantext($displaytext))) {
|
if (($attachment->displayName != "") && (fromgplus_cleantext($attachment->displayName) != fromgplus_cleantext($displaytext))) {
|
||||||
|
|
Loading…
Reference in a new issue