A platform for community discussion. Free, open, simple.
DEV: See if the store is external before checking disk space (#8480)
Jarek Radosz02ca6fa6c878
diff --git a/lib/cooked_post_processor.rb b/lib/cooked_post_processor.rbindex 3c0f2c1aa16..52c837ecaf8 100644--- a/lib/cooked_post_processor.rb+++ b/lib/cooked_post_processor.rb@@ -642,9 +642,9 @@ class CookedPostProcessorenddef disable_if_low_on_disk_space+ return false if Discourse.store.external?return false if !SiteSetting.download_remote_images_to_localreturn false if available_disk_space >= SiteSetting.download_remote_images_threshold- return false if Discourse.store.external?SiteSetting.download_remote_images_to_local = false# log the site setting change