X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fphotos.php;h=9bc870ca13fe34265dac0fbf5d08071c1d7f33af;hb=baf316e89808b1480f1fa69916cc2b60c343993b;hp=45e713677abf18cd790a2e3768218ce75fec1f1e;hpb=93daf7883e98d797759fb81dbf12e9e368debf61;p=friendica.git diff --git a/mod/photos.php b/mod/photos.php index 45e713677a..9bc870ca13 100644 --- a/mod/photos.php +++ b/mod/photos.php @@ -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 = ''; }