mirror of
https://github.com/friendica/friendica
synced 2025-04-19 07:10:11 +00:00
Pinned posts now work for visitors in the intended way
This commit is contained in:
parent
2200996d44
commit
fc94cad5f2
4 changed files with 34 additions and 10 deletions
|
@ -350,7 +350,7 @@ class Profile extends BaseModule
|
|||
$items = DBA::toArray($items_stmt);
|
||||
|
||||
if ($pager->getStart() == 0 && !empty($a->profile['profile_uid'])) {
|
||||
$pinned_items = Item::selectPinned($a->profile['profile_uid'], ['uri']);
|
||||
$pinned_items = Item::selectPinned($a->profile['profile_uid'], ['uri', 'pinned'], ['true' . $sql_extra]);
|
||||
$pinned = Item::inArray($pinned_items);
|
||||
$items = array_merge($items, $pinned);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue