Do not collapse quote notifications

This prevents an issue where edits to a post with a quote would trigger push notifications indefinitely.
This commit is contained in:
Penar Musaraj 2019-06-27 18:20:43 -04:00
parent 4ba35472e6
commit 27387b0859
2 changed files with 2 additions and 3 deletions

View File

@ -271,7 +271,6 @@ class PostAlerter
COLLAPSED_NOTIFICATION_TYPES ||= [
Notification.types[:replied],
Notification.types[:quoted],
Notification.types[:posted],
Notification.types[:private_message],
]

View File

@ -184,7 +184,7 @@ describe PostAlerter do
}.to change(evil_trout.notifications, :count).by(0)
end
it 'notifies a user by username' do
it 'does not collapse quote notifications' do
topic = Fabricate(:topic)
expect {
@ -194,7 +194,7 @@ describe PostAlerter do
topic: topic
)
end
}.to change(evil_trout.notifications, :count).by(1)
}.to change(evil_trout.notifications, :count).by(2)
end
it "won't notify the user a second time on revision" do