From 144c9f00f4bedf584dcf8f7242eaf42ebebebc3a Mon Sep 17 00:00:00 2001 From: Michael Date: Wed, 27 Apr 2022 03:25:47 +0000 Subject: [PATCH] Fix: Show reshared posts on the contact page --- src/Model/Contact.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Model/Contact.php b/src/Model/Contact.php index 2204b6c6e0..377d734a24 100644 --- a/src/Model/Contact.php +++ b/src/Model/Contact.php @@ -1456,12 +1456,13 @@ class Contact } if ($thread_mode) { - $items = Post::toArray(Post::selectForUser(local_user(), ['uri-id'], $condition, $params)); + $fields = ['uri-id', 'thr-parent-id', 'gravity', 'author-id', 'commented']; + $items = Post::toArray(Post::selectForUser(local_user(), $fields, $condition, $params)); if ($pager->getStart() == 0) { $cdata = Contact::getPublicAndUserContactID($cid, local_user()); if (!empty($cdata['public'])) { - $pinned = Post\Collection::selectToArrayForContact($cdata['public'], Post\Collection::FEATURED, ['uri-id']); + $pinned = Post\Collection::selectToArrayForContact($cdata['public'], Post\Collection::FEATURED, $fields); $items = array_merge($items, $pinned); } } -- 2.39.5