]> git.mxchange.org Git - friendica.git/commitdiff
We should now always fetch the user posts
authorMichael <heluecht@pirati.ca>
Tue, 31 May 2022 17:49:08 +0000 (17:49 +0000)
committerMichael <heluecht@pirati.ca>
Tue, 31 May 2022 17:49:08 +0000 (17:49 +0000)
mod/display.php

index 580ff40fe8bc9ec956fc7c8c4edd8a6c158c4978..57696ce07690992e5cc329a097671ceed39e24b8 100644 (file)
@@ -106,7 +106,7 @@ function display_init(App $a)
        }
 
        if ($item['gravity'] != GRAVITY_PARENT) {
-               $parent = Post::selectFirstForUser($item_user, $fields, ['uid' => [$item['uid'], local_user()], 'uri-id' => $item['parent-uri-id']], ['order' => ['uid']]);
+               $parent = Post::selectFirstForUser($item_user, $fields, ['uid' => [0, $item_user], 'uri-id' => $item['parent-uri-id']], ['order' => ['uid' => true]]);
                $item = $parent ?: $item;
        }