Apply suggestions from code review

Co-authored-by: Hypolite Petovan <hypolite@mrpetovan.com>
This commit is contained in:
Michael Vogel 2021-07-23 15:26:21 +02:00 committed by GitHub
parent 2fae93d8fd
commit f6e5a14805
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 2 deletions

View file

@ -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'];

View file

@ -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')]);