aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2023-05-13 19:52:52 +0000
committerMario <mario@mariovavti.com>2023-05-13 19:52:52 +0000
commit5bdd699c9d8753be32e2155001247914b19fab0a (patch)
tree30f5d78c9c1ef805c7896412a55a779f2201f9e3
parent049fc9161541b388910ef83b404c8902734b3df4 (diff)
parent29e8e6d95c469c08cff7cd615319d1059f57e22e (diff)
downloadvolse-hubzilla-5bdd699c9d8753be32e2155001247914b19fab0a.tar.gz
volse-hubzilla-5bdd699c9d8753be32e2155001247914b19fab0a.tar.bz2
volse-hubzilla-5bdd699c9d8753be32e2155001247914b19fab0a.zip
Merge branch 'dev' into 8.4RC
-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);