Notifications: Now declare direct thread answers as replies

This commit is contained in:
Michael 2020-01-09 17:53:17 +00:00
parent 878bebc429
commit 469eefdc5b
2 changed files with 22 additions and 0 deletions

View file

@ -704,6 +704,11 @@ function check_item_notification($itemid, $uid, $notification_type) {
$params['activity']['thread_comment'] = ($notification_type & UserItem::NOTIF_COMMENT_PARTICIPATION);
$params['activity']['thread_activity'] = ($notification_type & UserItem::NOTIF_ACTIVITY_PARTICIPATION);
// Tagging a user in a direct post (first comment level) means a direct comment
if ($params['activity']['explicit_tagged'] && ($notification_type & UserItem::NOTIF_DIRECT_THREAD_COMMENT)) {
$params['activity']['origin_comment'] = true;
}
if ($notification_type & UserItem::NOTIF_SHARED) {
$params['type'] = NOTIFY_SHARE;
$params['verb'] = Activity::POST;