From 29e8e6d95c469c08cff7cd615319d1059f57e22e Mon Sep 17 00:00:00 2001 From: Mario Date: Sat, 13 May 2023 19:51:25 +0000 Subject: fix parent and parent_mid for likes --- Zotlabs/Module/Like.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Zotlabs') 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); -- cgit v1.2.3