Update src/Module/Item/Display.php

Co-authored-by: Hypolite Petovan <hypolite@mrpetovan.com>
This commit is contained in:
Artur Weigandt 2024-11-18 15:15:58 +01:00 committed by GitHub
parent 55709169eb
commit 817eeb9734
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View 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());
}