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