likes of comments not displaying properly, item parent was set to target (thr_parent) and not conversation parent (parent_mid)

This commit is contained in:
Mike Macgirvin 2022-07-12 12:52:10 -07:00
parent 1b9bf72614
commit a4d3e82a95

View file

@ -251,7 +251,7 @@ class Like extends Controller
event_addtocal($item['id'], $channel['channel_id']);
}
$arr['parent'] = $item['id'];
$arr['parent'] = $item['parent'];
$arr['thr_parent'] = $item['mid'];
$allow_cid = $item['allow_cid'];
$allow_gid = $item['allow_gid'];
@ -264,7 +264,7 @@ class Like extends Controller
$arr['item_flags'] = $item['item_flags'];
$arr['item_wall'] = $item['item_wall'];
$arr['parent_mid'] = $item['mid'];
$arr['parent_mid'] = $item['parent_mid'];
$arr['owner_xchan'] = $thread_owner['xchan_hash'];
$arr['author_xchan'] = $observer['xchan_hash'];