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