mirror of
https://github.com/friendica/friendica
synced 2024-12-22 18:00:16 +00:00
Update src/Module/Item/Display.php
Co-authored-by: Hypolite Petovan <hypolite@mrpetovan.com>
This commit is contained in:
parent
55709169eb
commit
817eeb9734
1 changed files with 1 additions and 1 deletions
|
@ -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());
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue