choose correct parent for notifications

This commit is contained in:
Mike Macgirvin 2023-08-19 08:07:33 +10:00
parent b6d2d3568c
commit e4368bab90

View file

@ -191,7 +191,9 @@ class Enotify
}
}
$thr_parent = $params['thr_parent'];
$thr_parent = array_key_exists('item', $params)
? $params['item']['thr_parent']
: $params['parent_mid'];
// Check to see if there was already a notification for this post.
// If so don't create a second notification
@ -304,8 +306,10 @@ class Enotify
}
}
$thr_parent = $params['thr_parent'];
$thr_parent = array_key_exists('item', $params)
? $params['item']['thr_parent']
: $params['parent_mid'];
// Check to see if there was already a notification for this post.
// If so don't create a second notification