aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2011-03-02 16:19:38 -0800
committerFriendika <info@friendika.com>2011-03-02 16:19:38 -0800
commitbfdf4bddc984838bc1bccccfe1c2b7ddebe43e92 (patch)
tree2cb5ee3d05bdae03f47b6b51f756694082b46beb
parent6480fd73a7c24b939d4b25ffacfdab0c8bb9c930 (diff)
downloadvolse-hubzilla-bfdf4bddc984838bc1bccccfe1c2b7ddebe43e92.tar.gz
volse-hubzilla-bfdf4bddc984838bc1bccccfe1c2b7ddebe43e92.tar.bz2
volse-hubzilla-bfdf4bddc984838bc1bccccfe1c2b7ddebe43e92.zip
"New Item View" had no magic sparkle links
-rw-r--r--mod/network.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/mod/network.php b/mod/network.php
index 8ac51cee3..35eb0b325 100644
--- a/mod/network.php
+++ b/mod/network.php
@@ -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>' : '');