From 1b14f67a86c17da457af4c2ede78aec49f673195 Mon Sep 17 00:00:00 2001 From: Friendika Date: Tue, 15 Feb 2011 02:30:01 -0800 Subject: bug #0000006, local sparkle links visible in "like" items when remote viewing --- boot.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'boot.php') diff --git a/boot.php b/boot.php index 5dc751879..ede8459cb 100644 --- a/boot.php +++ b/boot.php @@ -1804,7 +1804,7 @@ function like_puller($a,$item,&$arr,$mode) { if((activity_match($item['verb'],$verb)) && ($item['id'] != $item['parent'])) { $url = $item['author-link']; - if(($item['network'] === 'dfrn') && (! $item['self']) && ($item['author-link'] == $item['url'])) { + if((local_user()) && (local_user() == $item['uid']) && ($item['network'] === 'dfrn') && (! $item['self']) && (link_compare($item['author-link'],$item['url']))) { $url = $a->get_baseurl() . '/redir/' . $item['contact-id']; $sparkle = ' class="sparkle" '; } -- cgit v1.2.3