1
0
Fork 0

getpostsbyurl hadn't worked

This commit is contained in:
Michael 2017-11-24 22:15:35 +00:00
parent 6ecc464a68
commit abc0b90fa9

View file

@ -734,6 +734,8 @@ class Contact extends BaseObject
*/ */
public static function getPostsFromUrl($contact_url) public static function getPostsFromUrl($contact_url)
{ {
$a = self::getApp();
require_once 'include/conversation.php'; require_once 'include/conversation.php';
// There are no posts with "uid = 0" with connector networks // 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']) " 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); $o = conversation($a, $r, 'community', false);