API: Use NOTIF_DIRECT_THREAD_COMMENT for the API mentions as well

This commit is contained in:
Michael 2020-01-09 17:58:22 +00:00
parent 469eefdc5b
commit ad11579eaa
1 changed files with 2 additions and 1 deletions

View File

@ -2166,7 +2166,8 @@ function api_statuses_mentions($type)
AND `user-item`.`iid` > ?"; AND `user-item`.`iid` > ?";
$condition = [GRAVITY_PARENT, GRAVITY_COMMENT, api_user(), $condition = [GRAVITY_PARENT, GRAVITY_COMMENT, api_user(),
UserItem::NOTIF_EXPLICIT_TAGGED | UserItem::NOTIF_IMPLICIT_TAGGED | UserItem::NOTIF_EXPLICIT_TAGGED | UserItem::NOTIF_IMPLICIT_TAGGED |
UserItem::NOTIF_THREAD_COMMENT | UserItem::NOTIF_DIRECT_COMMENT, UserItem::NOTIF_THREAD_COMMENT | UserItem::NOTIF_DIRECT_COMMENT |
UserItem::NOTIF_DIRECT_THREAD_COMMENT,
$since_id]; $since_id];
if ($max_id > 0) { if ($max_id > 0) {