function display_fetchauthor($item)
{
- if (Diaspora::isReshare($item['body'], true)) {
- $shared = Item::getShareArray($item);
- if (!empty($shared['profile'])) {
- $contact = Contact::getByURLForUser($shared['profile'], DI::userSession()->getLocalUserId());
- }
+ $shared = Item::getShareArray($item);
+ if (empty($shared['comment']) && !empty($shared['guid']) && !empty($shared['profile'])) {
- $contact = Contact::getByURLForUser($shared['profile'], Session::getLocalUser());
++ $contact = Contact::getByURLForUser($shared['profile'], DI::userSession()->getLocalUserId());
}
if (empty($contact)) {