- $author = DBA::selectFirst('contact', ['name', 'nick', 'photo', 'network', 'url'], ['id' => $item['author-id']]);
-
- $profiledata = [];
- $profiledata['uid'] = -1;
- $profiledata['nickname'] = $author['nick'];
- $profiledata['name'] = $author['name'];
- $profiledata['picdate'] = '';
- $profiledata['photo'] = $author['photo'];
- $profiledata['url'] = $author['url'];
- $profiledata['network'] = $author['network'];
-
- // Check for a repeated message
- $shared = Item::getShareArray($item);
- if (!empty($shared) && empty($shared['comment'])) {
- if (!empty($shared['author'])) {
- $profiledata['name'] = $shared['author'];
- }
-
+ if (Diaspora::isReshare($item['body'], true)) {
+ $shared = Item::getShareArray($item);