aboutsummaryrefslogtreecommitdiffstats
path: root/mod
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2013-04-03 18:04:48 -0700
committerfriendica <info@friendica.com>2013-04-03 18:04:48 -0700
commitf353b9ae3d7295dfc8123ab77a91a3f56ebef2a5 (patch)
tree6008a486b59b9e64814cbb14855ac01f9ad27aa1 /mod
parentc10e30631a66705fe79e2550a9d85283a1cc0abd (diff)
downloadvolse-hubzilla-f353b9ae3d7295dfc8123ab77a91a3f56ebef2a5.tar.gz
volse-hubzilla-f353b9ae3d7295dfc8123ab77a91a3f56ebef2a5.tar.bz2
volse-hubzilla-f353b9ae3d7295dfc8123ab77a91a3f56ebef2a5.zip
liking comments were reverted to liking the parent after sending item to another channel
Diffstat (limited to 'mod')
-rwxr-xr-xmod/like.php2
1 files changed, 2 insertions, 0 deletions
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'];