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:
Martin Brennan
2022-11-09 07:48:05 +10:00
committed by GitHub
parent 74a9859a12
commit f8f55cef67
6 changed files with 29 additions and 20 deletions

View File

@ -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