Update src/Module/Item/Display.php

Co-authored-by: Hypolite Petovan <hypolite@mrpetovan.com>
This commit is contained in:
Artur Weigandt 2024-11-21 09:57:07 +01:00 committed by GitHub
parent 81be4c238c
commit ca956408f6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -168,7 +168,7 @@ class Display extends BaseModule
{ {
$author = []; $author = [];
$shared = $this->contentItem->getSharedPost($item, ['author-link']); $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()); $author = Contact::getByURLForUser($shared['post']['author-link'], $this->session->getLocalUserId());
} }