aboutsummaryrefslogtreecommitdiffstats
path: root/mod
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2013-08-19 19:05:11 -0700
committerfriendica <info@friendica.com>2013-08-19 19:05:11 -0700
commitb9314935e6f85bb0098c651d021ce9bdc2753ecb (patch)
treea9f179b3066799a9b37608cfc00555fcf37876ca /mod
parent2e14dc242e552629cac5914e85096d423e6fd43c (diff)
downloadvolse-hubzilla-b9314935e6f85bb0098c651d021ce9bdc2753ecb.tar.gz
volse-hubzilla-b9314935e6f85bb0098c651d021ce9bdc2753ecb.tar.bz2
volse-hubzilla-b9314935e6f85bb0098c651d021ce9bdc2753ecb.zip
localize_item() thinks all likes on posts are likes on comments because we didn't pass any info in the activity object to distinguish them from each other.
Diffstat (limited to 'mod')
-rwxr-xr-xmod/like.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/mod/like.php b/mod/like.php
index f617391a1..90005eca3 100755
--- a/mod/like.php
+++ b/mod/like.php
@@ -110,6 +110,7 @@ function like_content(&$a) {
$obj = json_encode(array(
'type' => $objtype,
'id' => $item['mid'],
+ 'parent' => (($item['thr_parent']) ? $item['thr_parent'] : $item['parent_mid']),
'link' => $links,
'title' => $item['title'],
'content' => $item['body'],