Merge pull request #3943 from annando/getposts

getPostsFromUrl hadn't worked
This commit is contained in:
Tobias Diekershoff 2017-11-24 23:20:30 +01:00 committed by GitHub
commit 695094f9aa
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View 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);