From f6e5a14805cf265a4a724bddd7295c23f4b232fc Mon Sep 17 00:00:00 2001 From: Michael Vogel Date: Fri, 23 Jul 2021 15:26:21 +0200 Subject: [PATCH] Apply suggestions from code review Co-authored-by: Hypolite Petovan --- mod/display.php | 2 +- mod/unfollow.php | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/mod/display.php b/mod/display.php index 5bcf30faa0..b51768e800 100644 --- a/mod/display.php +++ b/mod/display.php @@ -264,7 +264,7 @@ function display_content(App $a, $update = false, $update_uid = 0) } if (DBA::isResult($parent)) { - $page_uid = ($page_uid ?? 0) ?: $parent['uid']; + $page_uid = $page_uid ?? 0 ?: $parent['uid']; $is_remote_contact = Session::getRemoteContactID($page_uid); if ($is_remote_contact) { $item_uid = $parent['uid']; diff --git a/mod/unfollow.php b/mod/unfollow.php index f07522cab5..de1cb6cf7c 100644 --- a/mod/unfollow.php +++ b/mod/unfollow.php @@ -104,7 +104,6 @@ function unfollow_content(App $a) '$keywords_label'=> '' ]); - DI::page()['aside'] = ''; DI::page()['aside'] = Widget\VCard::getHTML(Contact::getByURL($contact['url'], false)); $o .= Renderer::replaceMacros(Renderer::getMarkupTemplate('section_title.tpl'), ['$title' => DI::l10n()->t('Status Messages and Posts')]);