]> git.mxchange.org Git - friendica.git/commitdiff
Apply suggestions from code review
authorMichael Vogel <icarus@dabo.de>
Fri, 23 Jul 2021 13:26:21 +0000 (15:26 +0200)
committerGitHub <noreply@github.com>
Fri, 23 Jul 2021 13:26:21 +0000 (15:26 +0200)
Co-authored-by: Hypolite Petovan <hypolite@mrpetovan.com>
mod/display.php
mod/unfollow.php

index 5bcf30faa03dbbc4b11fc86c120fb753f1b07e85..b51768e8004099dab64b74fa2e76ab2f23b53b12 100644 (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'];
index f07522cab5520151324ee68eef5536ab8e4e3091..de1cb6cf7cdb05dd02a69c2bbc6447c59295f42b 100644 (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')]);