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