mirror of
https://github.com/friendica/friendica
synced 2025-01-03 14:42:18 +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 = [];
|
$author = [];
|
||||||
$shared = $this->contentItem->getSharedPost($item, ['author-link']);
|
$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());
|
$author = Contact::getByURLForUser($shared['post']['author-link'], $this->session->getLocalUserId());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue