Merge pull request #752 from MrPetovan/bug/fromgplus-fix-undefined-published
[fromgplus] Fix Undefined property: stdClass::$published noticepull/753/head
commit
440e929898
|
@ -495,8 +495,9 @@ function fromgplus_fetch($a, $uid) {
|
||||||
case "note":
|
case "note":
|
||||||
$post = fromgplus_html2bbcode($item->object->content);
|
$post = fromgplus_html2bbcode($item->object->content);
|
||||||
|
|
||||||
if (is_array($item->object->attachments))
|
if (!empty($item->object->attachments)) {
|
||||||
$post .= fromgplus_handleattachments($a, $uid, $item, $item->object->content, false);
|
$post .= fromgplus_handleattachments($a, $uid, $item, $item->object->content, false);
|
||||||
|
}
|
||||||
|
|
||||||
$coord = "";
|
$coord = "";
|
||||||
$location = "";
|
$location = "";
|
||||||
|
@ -526,12 +527,12 @@ function fromgplus_fetch($a, $uid) {
|
||||||
if (function_exists("share_header"))
|
if (function_exists("share_header"))
|
||||||
$post .= share_header($item->object->actor->displayName, $item->object->actor->url,
|
$post .= share_header($item->object->actor->displayName, $item->object->actor->url,
|
||||||
$item->object->actor->image->url, "",
|
$item->object->actor->image->url, "",
|
||||||
DateTimeFormat::utc($item->object->published),$item->object->url);
|
DateTimeFormat::utc($item->published),$item->object->url);
|
||||||
else
|
else
|
||||||
$post .= "[share author='".str_replace("'", "'",$item->object->actor->displayName).
|
$post .= "[share author='".str_replace("'", "'",$item->object->actor->displayName).
|
||||||
"' profile='".$item->object->actor->url.
|
"' profile='".$item->object->actor->url.
|
||||||
"' avatar='".$item->object->actor->image->url.
|
"' avatar='".$item->object->actor->image->url.
|
||||||
"' posted='".DateTimeFormat::utc($item->object->published).
|
"' posted='".DateTimeFormat::utc($item->published).
|
||||||
"' link='".$item->object->url."']";
|
"' link='".$item->object->url."']";
|
||||||
|
|
||||||
$post .= fromgplus_html2bbcode($item->object->content);
|
$post .= fromgplus_html2bbcode($item->object->content);
|
||||||
|
|
Loading…
Reference in New Issue