Use magicLink whenever possible

This commit is contained in:
Michael 2018-06-02 08:05:06 +00:00
commit 8a34895a23
23 changed files with 61 additions and 165 deletions

View file

@ -1538,14 +1538,10 @@ function photos_content(App $a)
continue;
}
$redirect_url = 'redir/' . $item['cid'];
if (local_user() && ($item['contact-uid'] == local_user())
&& ($item['network'] == NETWORK_DFRN) && !$item['self']) {
$profile_url = $redirect_url;
$profile_url = Contact::MagicLinkById($item['cid']);
if (strpos($profile_url, 'redir/') === 0) {
$sparkle = ' sparkle';
} else {
$profile_url = $item['url'];
$sparkle = '';
}