]> git.mxchange.org Git - friendica.git/commitdiff
Prefer the local user when displaying items
authorMichael <heluecht@pirati.ca>
Fri, 1 Oct 2021 05:26:13 +0000 (05:26 +0000)
committerMichael <heluecht@pirati.ca>
Fri, 1 Oct 2021 05:26:13 +0000 (05:26 +0000)
mod/display.php

index d4651703219eac7af3ecb7c33cc4d19ee4c47fcb..d854be45e2e2dccf504c5bf307795d280e5421d3 100644 (file)
@@ -246,11 +246,11 @@ function display_content(App $a, $update = false, $update_uid = 0)
        $page_uid = 0;
 
        $parent = null;
-       if (!empty($parent_uri_id)) {
+       if (!local_user() && !empty($parent_uri_id)) {
                $parent = Post::selectFirst(['uid'], ['uri-id' => $parent_uri_id, 'wall' => true]);
        }
 
-       if (DBA::isResult($parent)) {
+       if (!local_user() && DBA::isResult($parent)) {
                $page_uid = $page_uid ?? 0 ?: $parent['uid'];
                $is_remote_contact = Session::getRemoteContactID($page_uid);
                if ($is_remote_contact) {