]> git.mxchange.org Git - friendica-addons.git/commitdiff
[fromgplus] Fix Undefined property: stdClass::$published notice
authorHypolite Petovan <hypolite@mrpetovan.com>
Sun, 14 Oct 2018 11:17:15 +0000 (07:17 -0400)
committerHypolite Petovan <hypolite@mrpetovan.com>
Sun, 14 Oct 2018 11:17:15 +0000 (07:17 -0400)
fromgplus/fromgplus.php

index 24ec46f3da0de17596dd9dfcb47648605f72d940..89139ed1c422421ca314503f4cf3089afcafdc26 100644 (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("'", "&#039;",$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);