mirror of
https://github.com/discourse/discourse.git
synced 2025-05-21 18:12:32 +08:00
FEATURE: warn the admin whenever we disable the download_remote_images_to_local site setting
This commit is contained in:
@ -236,6 +236,7 @@ class CookedPostProcessor
|
||||
def disable_if_low_on_disk_space
|
||||
if available_disk_space < SiteSetting.download_remote_images_threshold
|
||||
SiteSetting.download_remote_images_to_local = false
|
||||
SystemMessage.create(Discourse.site_contact_user, :download_remote_images_disabled)
|
||||
return true
|
||||
end
|
||||
false
|
||||
|
Reference in New Issue
Block a user