]> git.mxchange.org Git - friendica.git/commitdiff
Fix: Show reshared posts on the contact page
authorMichael <heluecht@pirati.ca>
Wed, 27 Apr 2022 03:25:47 +0000 (03:25 +0000)
committerMichael <heluecht@pirati.ca>
Wed, 27 Apr 2022 03:25:47 +0000 (03:25 +0000)
src/Model/Contact.php

index 2204b6c6e0471f26133998e6ca657cc3f666a8f2..377d734a24a8190196e29bc6e73b0875e61da383 100644 (file)
@@ -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);
                                }
                        }