From: Michael <heluecht@pirati.ca>
Date: Thu, 27 Dec 2018 09:58:21 +0000 (+0000)
Subject: Only assign a uid to the profile if not defined by now
X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=826965f6df87dd8a98697becb9a801ea504c4252;p=friendica.git

Only assign a uid to the profile if not defined by now
---

diff --git a/mod/display.php b/mod/display.php
index 2a4d2abf43..cca446845a 100644
--- a/mod/display.php
+++ b/mod/display.php
@@ -291,8 +291,8 @@ function display_content(App $a, $update = false, $update_uid = 0)
 
 	$parent = Item::selectFirst(['uid'], ['uri' => $item_parent_uri, 'wall' => true]);
 	if (DBA::isResult($parent)) {
-		$a->profile['uid'] = $parent['uid'];
-		$a->profile['profile_uid'] = $parent['uid'];
+		$a->profile['uid'] = defaults($a->profile, 'uid', $parent['uid']);
+		$a->profile['profile_uid'] = defaults($a->profile, 'profile_uid', $parent['uid']);
 		$is_remote_contact = Contact::isFollower(remote_user(), $a->profile['profile_uid']);
 	}