mirror of
https://github.com/discourse/discourse.git
synced 2025-02-20 17:52:45 +08:00
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:
parent
4ba35472e6
commit
27387b0859
@ -271,7 +271,6 @@ class PostAlerter
|
||||
|
||||
COLLAPSED_NOTIFICATION_TYPES ||= [
|
||||
Notification.types[:replied],
|
||||
Notification.types[:quoted],
|
||||
Notification.types[:posted],
|
||||
Notification.types[:private_message],
|
||||
]
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user