]> git.mxchange.org Git - friendica.git/commitdiff
"New Item View" had no magic sparkle links
authorFriendika <info@friendika.com>
Thu, 3 Mar 2011 00:19:38 +0000 (16:19 -0800)
committerFriendika <info@friendika.com>
Thu, 3 Mar 2011 00:19:38 +0000 (16:19 -0800)
mod/network.php

index 8ac51cee36c938f0194ad0b644f13d979003bb3a..35eb0b3257c5a36dd8bc490100893be2fa607df6 100644 (file)
@@ -230,6 +230,11 @@ function network_content(&$a, $update = 0) {
                                $profile_avatar = ((strlen($item['author-avatar'])) ? $item['author-avatar'] : $item['thumb']);
                                $profile_link   = ((strlen($item['author-link']))   ? $item['author-link']   : $item['url']);
 
+                               if(strlen($item['author-link']) && link_compare($item['author-link'],$item['url']) 
+                                       && ($item['network'] === 'dfrn') && (! $item['self'])) {
+                                       $profile_link = $redirect_url;
+                                       $sparkle = ' sparkle';
+                               }
 
                                $location = (($item['location']) ? '<a target="map" href="http://maps.google.com/?q=' . urlencode($item['location']) . '">' . $item['location'] . '</a>' : '');
                                $coord = (($item['coord']) ? '<a target="map" href="http://maps.google.com/?q=' . urlencode($item['coord']) . '">' . $item['coord'] . '</a>' : '');