aboutsummaryrefslogtreecommitdiffstats
path: root/boot.php
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2010-11-19 14:28:28 -0800
committerFriendika <info@friendika.com>2010-11-19 14:28:28 -0800
commite4bbffe18c06c4c082416e24f75800c56db7693e (patch)
treed8bba3a93b078b5038630ac0e0fc2ba3c7549a01 /boot.php
parentef39bd080f299158b4ba1941493692c05ee8da30 (diff)
downloadvolse-hubzilla-e4bbffe18c06c4c082416e24f75800c56db7693e.tar.gz
volse-hubzilla-e4bbffe18c06c4c082416e24f75800c56db7693e.tar.bz2
volse-hubzilla-e4bbffe18c06c4c082416e24f75800c56db7693e.zip
"like" attributed to wrong person on oocasion
Diffstat (limited to 'boot.php')
-rw-r--r--boot.php12
1 files changed, 6 insertions, 6 deletions
diff --git a/boot.php b/boot.php
index 4cab1e5ae..686987672 100644
--- 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;
}}