]> git.mxchange.org Git - friendica.git/commitdiff
getpostsbyurl hadn't worked
authorMichael <heluecht@pirati.ca>
Fri, 24 Nov 2017 22:15:35 +0000 (22:15 +0000)
committerMichael <heluecht@pirati.ca>
Fri, 24 Nov 2017 22:15:35 +0000 (22:15 +0000)
src/Object/Contact.php

index 4f0b237dec406ae66a53feb6cabb6da02ee105f9..d7e78536218052af874c01bdeac99e4b5b7bea46 100644 (file)
@@ -734,6 +734,8 @@ class Contact extends BaseObject
         */
        public static function getPostsFromUrl($contact_url)
        {
+               $a = self::getApp();
+
                require_once 'include/conversation.php';
 
                // There are no posts with "uid = 0" with connector networks
@@ -759,7 +761,6 @@ class Contact extends BaseObject
                        " ORDER BY `item`.`created` DESC LIMIT %d, %d", intval($author_id), intval(local_user()), intval($a->pager['start']), intval($a->pager['itemspage'])
                );
 
-               $a = self::getApp();
 
                $o = conversation($a, $r, 'community', false);