mirror of
https://github.com/discourse/discourse.git
synced 2025-06-04 23:36:11 +08:00
DEV: TODO followups (#18936)
* Remove old bookmark column ignores to follow up b22450c7a8d378b32291743ca602cbc477dea106 * Change some group site setting checks to use the _map helper * Remove old secure_media helper stub for chat * Change attr_accessor to attr_reader for preloaded_custom_fields to follow up 70af45055ae24dc7eb1a20678a52ed3ec69421c3
This commit is contained in:
@ -13,13 +13,6 @@ module UploadsHelpers
|
||||
stub_request(:head, "https://#{SiteSetting.s3_upload_bucket}.s3.#{SiteSetting.s3_region}.amazonaws.com/")
|
||||
end
|
||||
|
||||
# TODO (martin) Remove this alias once discourse-chat plugin has been
|
||||
# updated to use secure_uploads instead.
|
||||
def enable_secure_media
|
||||
enable_secure_uploads
|
||||
DiscourseEvent.trigger(:site_setting_changed, :secure_media, false, true)
|
||||
end
|
||||
|
||||
def enable_secure_uploads
|
||||
setup_s3
|
||||
SiteSetting.secure_uploads = true
|
||||
|
Reference in New Issue
Block a user