A platform for community discussion. Free, open, simple.
Do not collapse quote notifications
Penar Musaraj27387b085951
diff --git a/app/services/post_alerter.rb b/app/services/post_alerter.rbindex 11ebd97faf5..d48fc2a2dda 100644--- a/app/services/post_alerter.rb+++ b/app/services/post_alerter.rb@@ -271,7 +271,6 @@ class PostAlerterCOLLAPSED_NOTIFICATION_TYPES ||= [Notification.types[:replied],- Notification.types[:quoted],Notification.types[:posted],Notification.types[:private_message],]diff --git a/spec/services/post_alerter_spec.rb b/spec/services/post_alerter_spec.rbindex 8db8dc02a7e..9e3c4bba510 100644--- a/spec/services/post_alerter_spec.rb+++ b/spec/services/post_alerter_spec.rb@@ -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' dotopic = Fabricate(:topic)expect {@@ -194,7 +194,7 @@ describe PostAlerter dotopic: topic)end- }.to change(evil_trout.notifications, :count).by(1)+ }.to change(evil_trout.notifications, :count).by(2)endit "won't notify the user a second time on revision" do