disable cropped thumbnails

This commit is contained in:
r888888888
2017-09-12 17:14:12 -07:00
parent 9041a5bc34
commit ed75e4bcf6

View File

@@ -180,11 +180,11 @@ class Post < ApplicationRecord
return "/images/download-preview.png" return "/images/download-preview.png"
end end
if has_cropped? && !CurrentUser.disable_cropped_thumbnails? # if has_cropped? && !CurrentUser.disable_cropped_thumbnails?
"/cached/data/cropped/small/#{md5}.jpg" # "/cached/data/cropped/small/#{md5}.jpg"
else # else
"/data/preview/#{file_path_prefix}#{md5}.jpg" "/data/preview/#{file_path_prefix}#{md5}.jpg"
end # end
end end
def complete_preview_file_url def complete_preview_file_url