mirror of
https://github.com/friendica/friendica
synced 2025-04-25 22:30:10 +00:00
Posts from contacts weren't displayed correctly
This commit is contained in:
parent
045a0b2a00
commit
2d9163ce30
2 changed files with 5 additions and 3 deletions
|
@ -875,11 +875,13 @@ class Contact extends BaseObject
|
|||
$contact = ($r[0]["contact-type"] == ACCOUNT_TYPE_COMMUNITY ? 'owner-id' : 'author-id');
|
||||
|
||||
$r = q(item_query() . " AND `item`.`" . $contact . "` = %d AND " . $sql .
|
||||
" ORDER BY `item`.`created` DESC LIMIT %d, %d", intval($author_id), intval(local_user()), intval($a->pager['start']), intval($a->pager['itemspage'])
|
||||
" AND `item`.`verb` = '%s' ORDER BY `item`.`created` DESC LIMIT %d, %d",
|
||||
intval($author_id), intval(local_user()), dbesc(ACTIVITY_POST),
|
||||
intval($a->pager['start']), intval($a->pager['itemspage'])
|
||||
);
|
||||
|
||||
|
||||
$o = conversation($a, $r, 'community', false);
|
||||
$o = conversation($a, $r, 'contact-posts', false);
|
||||
|
||||
$o .= alt_pager($a, count($r));
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue