Skip to content

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.rb
index 11ebd97faf5..d48fc2a2dda 100644
--- a/app/services/post_alerter.rb
+++ b/app/services/post_alerter.rb
@@ -271,7 +271,6 @@ class PostAlerter
COLLAPSED_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.rb
index 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' 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