From f353b9ae3d7295dfc8123ab77a91a3f56ebef2a5 Mon Sep 17 00:00:00 2001 From: friendica Date: Wed, 3 Apr 2013 18:04:48 -0700 Subject: liking comments were reverted to liking the parent after sending item to another channel --- mod/like.php | 2 ++ 1 file changed, 2 insertions(+) (limited to 'mod/like.php') diff --git a/mod/like.php b/mod/like.php index fe2126180..65073aed7 100755 --- a/mod/like.php +++ b/mod/like.php @@ -49,6 +49,7 @@ function like_content(&$a) { $item = $r[0]; $owner_uid = $item['uid']; + $owner_aid = $item['aid']; if(! perm_is_allowed($owner_uid,$observer['xchan_hash'],'post_comments')) { notice( t('Permission denied') . EOL); @@ -140,6 +141,7 @@ function like_content(&$a) { $arr = array(); $arr['mid'] = $mid; + $arr['aid'] = $owner_aid; $arr['uid'] = $owner_uid; $arr['item_flags'] = $item_flags; $arr['parent'] = $item['id']; -- cgit v1.2.3