disable cropped thumbnails
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user