mirror of
https://github.com/discourse/discourse.git
synced 2025-05-31 00:17:17 +08:00
REFACTOR: Rename SiteSetting.disable_edit_notifications to disable_system_edit_notifications (#7958)
* REFACTOR: Rename SiteSetting.disable_edit_notifications to disable_system_edit_notifications - The older name could cause some confusion because the setting does not disable all edit notifications, only system ones. * FIX: Add frozen_string_literal: true in the migration * DEV: Deprecate 'disable_edit_notifications'
This commit is contained in:
@ -97,8 +97,8 @@ def rebake_posts(opts = {})
|
||||
puts "Rebaking post markdown for '#{RailsMultisite::ConnectionManagement.current_db}'"
|
||||
|
||||
begin
|
||||
disable_edit_notifications = SiteSetting.disable_edit_notifications
|
||||
SiteSetting.disable_edit_notifications = true
|
||||
disable_system_edit_notifications = SiteSetting.disable_system_edit_notifications
|
||||
SiteSetting.disable_system_edit_notifications = true
|
||||
|
||||
total = Post.count
|
||||
rebaked = 0
|
||||
@ -112,7 +112,7 @@ def rebake_posts(opts = {})
|
||||
end
|
||||
end
|
||||
ensure
|
||||
SiteSetting.disable_edit_notifications = disable_edit_notifications
|
||||
SiteSetting.disable_system_edit_notifications = disable_system_edit_notifications
|
||||
end
|
||||
|
||||
puts "", "#{rebaked} posts done!", "-" * 50
|
||||
|
Reference in New Issue
Block a user