From 826965f6df87dd8a98697becb9a801ea504c4252 Mon Sep 17 00:00:00 2001 From: Michael Date: Thu, 27 Dec 2018 09:58:21 +0000 Subject: [PATCH] Only assign a uid to the profile if not defined by now --- mod/display.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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']); }