]> git.mxchange.org Git - friendica.git/commitdiff
Update src/Module/Item/Display.php
authorArtur Weigandt <Art4@users.noreply.github.com>
Thu, 21 Nov 2024 08:57:07 +0000 (09:57 +0100)
committerGitHub <noreply@github.com>
Thu, 21 Nov 2024 08:57:07 +0000 (09:57 +0100)
Co-authored-by: Hypolite Petovan <hypolite@mrpetovan.com>
src/Module/Item/Display.php

index 66ac3c3a75add120dda4fee97d004c1e2e445919..2440fd549c2237dd7f9c1eb0e15917bdcb5d9dfa 100644 (file)
@@ -168,7 +168,7 @@ class Display extends BaseModule
        {
                $author = [];
                $shared = $this->contentItem->getSharedPost($item, ['author-link']);
-               if (array_key_exists('comment', $shared) && strval($shared['comment']) !== '') {
+               if (array_key_exists('comment', $shared) && strval($shared['comment']) === '') {
                        $author = Contact::getByURLForUser($shared['post']['author-link'], $this->session->getLocalUserId());
                }