From fecef140d5181348e1f46cf8405f13bb05401b3e Mon Sep 17 00:00:00 2001 From: Friendika Date: Fri, 4 Mar 2011 21:27:38 -0800 Subject: [PATCH] new item view: sparkle links not redirecting --- mod/network.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mod/network.php b/mod/network.php index 35eb0b3257..65e6855a23 100644 --- a/mod/network.php +++ b/mod/network.php @@ -230,6 +230,8 @@ 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']); + $redirect_url = $a->get_baseurl() . '/redir/' . $item['cid'] ; + if(strlen($item['author-link']) && link_compare($item['author-link'],$item['url']) && ($item['network'] === 'dfrn') && (! $item['self'])) { $profile_link = $redirect_url;