mirror of
https://github.com/friendica/friendica
synced 2025-04-26 03:50:12 +00:00
Re-enable pinned items in profile wall
This commit is contained in:
parent
46c4bfe580
commit
e5ab4f1889
2 changed files with 8 additions and 2 deletions
|
@ -206,7 +206,13 @@ class Status extends BaseProfile
|
|||
|
||||
$items = DBA::toArray($items_stmt);
|
||||
|
||||
$o .= conversation($a, $items, $pager, 'profile', false, false, 'received', $a->profile['uid']);
|
||||
if ($pager->getStart() == 0 && !empty($a->profile['uid'])) {
|
||||
$pinned_items = Item::selectPinned($a->profile['uid'], ['uri', 'pinned']);
|
||||
$pinned = Item::inArray($pinned_items);
|
||||
$items = array_merge($items, $pinned);
|
||||
}
|
||||
|
||||
$o .= conversation($a, $items, $pager, 'profile', false, false, 'pinned_received', $a->profile['uid']);
|
||||
|
||||
$o .= $pager->renderMinimal(count($items));
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue