Some more notices fixed (#672)
This commit is contained in:
parent
f4763f67ad
commit
31d0fac64a
3 changed files with 6 additions and 4 deletions
|
@ -363,11 +363,11 @@ function fromgplus_handleattachments($a, $uid, $item, $displaytext, $shared) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($images["preview"] != "") {
|
if (!empty($images["preview"])) {
|
||||||
$post .= "\n[url=".$images["page"]."][img]".$images["preview"]."[/img][/url]\n";
|
$post .= "\n[url=".$images["page"]."][img]".$images["preview"]."[/img][/url]\n";
|
||||||
$pagedata["images"][0]["src"] = $images["preview"];
|
$pagedata["images"][0]["src"] = $images["preview"];
|
||||||
$pagedata["url"] = $images["page"];
|
$pagedata["url"] = $images["page"];
|
||||||
} elseif ($images["full"] != "") {
|
} elseif (!empty($images["full"])) {
|
||||||
$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"];
|
||||||
|
|
||||||
|
|
|
@ -1620,7 +1620,9 @@ function pumpio_fetchallcomments(App $a, $uid, $id)
|
||||||
$like->object = new stdClass;
|
$like->object = new stdClass;
|
||||||
$like->object->id = $item->id;
|
$like->object->id = $item->id;
|
||||||
$like->actor = new stdClass;
|
$like->actor = new stdClass;
|
||||||
$like->actor->displayName = $item->displayName;
|
if (!empty($item->displayName)) {
|
||||||
|
$like->actor->displayName = $item->displayName;
|
||||||
|
}
|
||||||
//$like->actor->preferredUsername = $item->preferredUsername;
|
//$like->actor->preferredUsername = $item->preferredUsername;
|
||||||
//$like->actor->image = $item->image;
|
//$like->actor->image = $item->image;
|
||||||
$like->actor->url = $item->url;
|
$like->actor->url = $item->url;
|
||||||
|
|
|
@ -139,7 +139,7 @@ function superblock_item_photo_menu(&$a,&$b) {
|
||||||
|
|
||||||
$blocked = false;
|
$blocked = false;
|
||||||
$author = $b['item']['author-link'];
|
$author = $b['item']['author-link'];
|
||||||
if(is_array($a->data['superblock'])) {
|
if(!empty($a->data['superblock'])) {
|
||||||
foreach($a->data['superblock'] as $bloke) {
|
foreach($a->data['superblock'] as $bloke) {
|
||||||
if(link_compare($bloke,$author)) {
|
if(link_compare($bloke,$author)) {
|
||||||
$blocked = true;
|
$blocked = true;
|
||||||
|
|
Loading…
Reference in a new issue