[fromgplus] Fix Undefined property: stdClass::$published notice

pull/752/head
Hypolite Petovan 2018-10-14 07:17:15 -04:00
parent 5b01292e68
commit b040bee1d0
1 changed files with 2 additions and 2 deletions

View File

@ -526,12 +526,12 @@ function fromgplus_fetch($a, $uid) {
if (function_exists("share_header"))
$post .= share_header($item->object->actor->displayName, $item->object->actor->url,
$item->object->actor->image->url, "",
DateTimeFormat::utc($item->object->published),$item->object->url);
DateTimeFormat::utc($item->published),$item->object->url);
else
$post .= "[share author='".str_replace("'", "'",$item->object->actor->displayName).
"' profile='".$item->object->actor->url.
"' avatar='".$item->object->actor->image->url.
"' posted='".DateTimeFormat::utc($item->object->published).
"' posted='".DateTimeFormat::utc($item->published).
"' link='".$item->object->url."']";
$post .= fromgplus_html2bbcode($item->object->content);