]> git.mxchange.org Git - friendica.git/blobdiff - mod/photos.php
mongo checkin, global directory, redir rework, location basics
[friendica.git] / mod / photos.php
index 3f860757507d5099bf9ef06a6af3117b603ebe95..81f3614b33407880a34fec9adf9c655fd6f68b8f 100644 (file)
@@ -766,10 +766,9 @@ function photos_content(&$a) {
 
                                        $profile_url = $item['url'];
 
-
-                                       if(local_user() && ($item['contact-uid'] == $_SESSION['uid']) && (strlen($item['dfrn-id'])) && (! $item['self'] ))
+                                       if(local_user() && ($item['contact-uid'] == $_SESSION['uid']) 
+                                               && ($item['rel'] == DIRECTION_IN || $item['rel'] == DIRECTION_BOTH) && (! $item['self'] ))
                                                $profile_url = $redirect_url;
-
  
                                        $profile_name = ((strlen($item['author-name'])) ? $item['author-name'] : $item['name']);
                                        $profile_avatar = ((strlen($item['author-avatar'])) ? $item['author-avatar'] : $item['thumb']);