aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Module/Like.php
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2023-05-13 19:51:25 +0000
committerMario <mario@mariovavti.com>2023-05-13 19:51:25 +0000
commit29e8e6d95c469c08cff7cd615319d1059f57e22e (patch)
treeac02f5ce23c1bdc579d5944d5b2e0952dfcf3ab5 /Zotlabs/Module/Like.php
parentb7c96f2cbd00a00d2e403cd2a68e317d6b1a414e (diff)
downloadvolse-hubzilla-29e8e6d95c469c08cff7cd615319d1059f57e22e.tar.gz
volse-hubzilla-29e8e6d95c469c08cff7cd615319d1059f57e22e.tar.bz2
volse-hubzilla-29e8e6d95c469c08cff7cd615319d1059f57e22e.zip
fix parent and parent_mid for likes
Diffstat (limited to 'Zotlabs/Module/Like.php')
-rw-r--r--Zotlabs/Module/Like.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/Zotlabs/Module/Like.php b/Zotlabs/Module/Like.php
index 486e6b31f..5779faa19 100644
--- a/Zotlabs/Module/Like.php
+++ b/Zotlabs/Module/Like.php
@@ -507,7 +507,7 @@ class Like extends Controller {
$private = (($public) ? 0 : 1);
}
else {
- $arr['parent'] = $item['id'];
+ $arr['parent'] = $item['parent'];
$arr['thr_parent'] = $item['mid'];
$ulink = '[zrl=' . $item_author['xchan_url'] . '][bdi]' . $item_author['xchan_name'] . '[/bdi][/zrl]';
$alink = '[zrl=' . $observer['xchan_url'] . '][bdi]' . $observer['xchan_name'] . '[/bdi][/zrl]';
@@ -524,7 +524,7 @@ class Like extends Controller {
$arr['uid'] = $owner_uid;
$arr['item_flags'] = $item['item_flags'];
$arr['item_wall'] = $item['item_wall'];
- $arr['parent_mid'] = (($extended_like) ? $arr['mid'] : $item['mid']);
+ $arr['parent_mid'] = (($extended_like) ? $arr['mid'] : $item['parent_mid']);
$arr['owner_xchan'] = (($extended_like) ? $ch[0]['xchan_hash'] : $thread_owner['xchan_hash']);
$arr['author_xchan'] = $observer['xchan_hash'];
$arr['body'] = sprintf($bodyverb, $alink, $ulink, $plink);