From 817eeb973492a6fa966e9ea859ffc1a16e7ec5b4 Mon Sep 17 00:00:00 2001 From: Artur Weigandt Date: Mon, 18 Nov 2024 15:15:58 +0100 Subject: [PATCH] Update src/Module/Item/Display.php Co-authored-by: Hypolite Petovan --- src/Module/Item/Display.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()); }