From: Artur Weigandt Date: Mon, 18 Nov 2024 14:15:58 +0000 (+0100) Subject: Update src/Module/Item/Display.php X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=817eeb973492a6fa966e9ea859ffc1a16e7ec5b4;p=friendica.git Update src/Module/Item/Display.php Co-authored-by: Hypolite Petovan --- diff --git a/src/Module/Item/Display.php b/src/Module/Item/Display.php index cca2dbf3a2..6a6d8dec52 100644 --- a/src/Module/Item/Display.php +++ b/src/Module/Item/Display.php @@ -167,7 +167,7 @@ class Display extends BaseModule { $author = []; $shared = $this->contentItem->getSharedPost($item, ['author-link']); - if (count($shared) > 0 && !array_key_exists('comment', $shared)) { + if (array_key_exists('comment', $shared) && !$shared['comment']) { $author = Contact::getByURLForUser($shared['post']['author-link'], $this->session->getLocalUserId()); }