]> git.mxchange.org Git - friendica.git/commitdiff
Update src/Module/Item/Display.php
authorArtur Weigandt <Art4@users.noreply.github.com>
Mon, 18 Nov 2024 14:15:58 +0000 (15:15 +0100)
committerGitHub <noreply@github.com>
Mon, 18 Nov 2024 14:15:58 +0000 (15:15 +0100)
Co-authored-by: Hypolite Petovan <hypolite@mrpetovan.com>
src/Module/Item/Display.php

index cca2dbf3a2a33b44e6492c16a4b7b0f0beaa37f0..6a6d8dec527270ae83d96b1b19e59ea7fbb0d9e3 100644 (file)
@@ -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());
                }