From 322ee3e17c1c59b209c2e9f04030ac484280f267 Mon Sep 17 00:00:00 2001 From: Guo Xiang Tan Date: Tue, 8 Mar 2016 11:38:26 +0800 Subject: [PATCH] Fix the build. --- lib/cooked_post_processor.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/cooked_post_processor.rb b/lib/cooked_post_processor.rb index ef1e3d69427..ea82b730a8e 100644 --- a/lib/cooked_post_processor.rb +++ b/lib/cooked_post_processor.rb @@ -152,7 +152,7 @@ class CookedPostProcessor return unless is_valid_image_url?(absolute_url) # we can *always* crawl our own images - return unless SiteSetting.crawl_images || Discourse.store.has_been_uploaded?(url) + return unless SiteSetting.crawl_images? || Discourse.store.has_been_uploaded?(url) @size_cache[url] ||= FastImage.size(absolute_url) rescue Zlib::BufError # FastImage.size raises BufError for some gifs