'url' => $item['author-link'],
];
$profile_link = Contact::magicLinkByContact($author, $item['author-link']);
- $sparkle = (strpos($profile_link, 'redir/') === 0);
+ $sparkle = (strpos($profile_link, 'contact/redir/') === 0);
$cid = 0;
$pcid = $item['author-id'];
if ($sparkle) {
$status_link = $profile_link . '/status';
- $photos_link = str_replace('/profile/', '/photos/', $profile_link);
+ $photos_link = $profile_link . '/photos';
$profile_link = $profile_link . '/profile';
}
'message_id' => $shared['uri'],
'comment' => $item['body'],
'shared' => $shared['body'],
- ];
+ ];
}
}
}
/**
- * Add a link to a shared post at the end of the post
+ * Add a link to a shared post at the end of the post
*
* @param string $body
* @param integer $quote_uri_id