since we only save the parent mid in notify we must look for thr_parent when dealing with likes

This commit is contained in:
Mario Vavti
2018-02-13 11:01:58 +01:00
parent b221c68e4b
commit d826515ba8
2 changed files with 13 additions and 2 deletions

View File

@@ -2402,7 +2402,7 @@ function send_status_notifications($post_id,$item) {
'to_xchan' => $r[0]['channel_hash'],
'item' => $item,
'link' => $link,
'verb' => ACTIVITY_POST,
'verb' => $item['verb'],
'otype' => 'item',
'parent' => $thr_parent_id ? $thr_parent_id : $parent,
'parent_mid' => $thr_parent_id ? $item['thr_parent'] : $item['parent_mid']