From abc0b90fa9199b570c68a470eea44acf62655e2d Mon Sep 17 00:00:00 2001 From: Michael Date: Fri, 24 Nov 2017 22:15:35 +0000 Subject: [PATCH] getpostsbyurl hadn't worked --- src/Object/Contact.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Object/Contact.php b/src/Object/Contact.php index 4f0b237dec..d7e7853621 100644 --- a/src/Object/Contact.php +++ b/src/Object/Contact.php @@ -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); -- 2.39.5