DEV: Add chat_mention notification type (#13784)

This commit is contained in:
Mark VanLandingham
2021-07-19 14:52:12 -05:00
committed by GitHub
parent 76a11e6dc9
commit 80950d7b28
2 changed files with 13 additions and 2 deletions

View File

@@ -75,7 +75,7 @@ class Notification < ActiveRecord::Base
DB.exec(<<~SQL)
DELETE
FROM notifications n
WHERE high_priority
WHERE high_priority AND notification_type <> #{types[:chat_mention].to_i}
AND NOT EXISTS (
SELECT 1
FROM posts p
@@ -116,7 +116,8 @@ class Notification < ActiveRecord::Base
reaction: 25,
votes_released: 26,
event_reminder: 27,
event_invitation: 28
event_invitation: 28,
chat_mention: 29
)
end