]> git.mxchange.org Git - friendica.git/commitdiff
"like" attributed to wrong person on oocasion
authorFriendika <info@friendika.com>
Fri, 19 Nov 2010 22:28:28 +0000 (14:28 -0800)
committerFriendika <info@friendika.com>
Fri, 19 Nov 2010 22:28:28 +0000 (14:28 -0800)
boot.php

index 4cab1e5ae693b33bf64d83812798233ad75b3136..6869876721ca912e7a2a217492e3313e80cef46b 100644 (file)
--- a/boot.php
+++ b/boot.php
@@ -1385,18 +1385,18 @@ function like_puller($a,$item,&$arr,$mode) {
        $verb = (($mode === 'like') ? ACTIVITY_LIKE : ACTIVITY_DISLIKE);
 
        if((activity_match($item['verb'],$verb)) && ($item['id'] != $item['parent'])) {
-               $url = $item['url'];
-               if(($item['network'] === 'dfrn') && (! $item['self'])) {
-                       $url = $a->get_baseurl() . '/redir/' . $item['contact-id'];
-                       $sparkle = ' class="sparkle" ';
-               }
+               $url = $item['author-link'];
+//             if(($item['network'] === 'dfrn') && (! $item['self'])) {
+//                     $url = $a->get_baseurl() . '/redir/' . $item['contact-id'];
+//                     $sparkle = ' class="sparkle" ';
+//             }
                if(! ((isset($arr[$item['parent'] . '-l'])) && (is_array($arr[$item['parent'] . '-l']))))
                        $arr[$item['parent'] . '-l'] = array();
                if(! isset($arr[$item['parent']]))
                        $arr[$item['parent']] = 1;
                else    
                        $arr[$item['parent']] ++;
-               $arr[$item['parent'] . '-l'][] = '<a href="'. $url . '"'. $sparkle .'>' . $item['name'] . '</a>';
+               $arr[$item['parent'] . '-l'][] = '<a href="'. $url . '"'. $sparkle .'>' . $item['author-name'] . '</a>';
        }
        return;
 }}