]> git.mxchange.org Git - friendica.git/blobdiff - mod/photos.php
The central item fetch does work now and the API now uses these functions
[friendica.git] / mod / photos.php
index 45e713677abf18cd790a2e3768218ce75fec1f1e..9bc870ca13fe34265dac0fbf5d08071c1d7f33af 100644 (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 = '';
                                        }