]> git.mxchange.org Git - friendica.git/commitdiff
bug #0000006, local sparkle links visible in "like" items when remote viewing
authorFriendika <info@friendika.com>
Tue, 15 Feb 2011 10:30:01 +0000 (02:30 -0800)
committerFriendika <info@friendika.com>
Tue, 15 Feb 2011 10:30:01 +0000 (02:30 -0800)
boot.php

index 5dc7518790e25bc14f4bd67f6a24fbc08ddc453d..ede8459cb151630ec3ac1d3da328ce5bf769dea6 100644 (file)
--- 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" ';
                }