Merge tag 'v2.5.2' into HEAD

This commit is contained in:
Mike Barnes 2018-10-14 15:14:29 +11:00
commit 7ec79ce03f
16 changed files with 118 additions and 30 deletions

View file

@ -13,7 +13,7 @@ module Mastodon
end
def patch
0
2
end
def pre

View file

@ -20,7 +20,7 @@ module Paperclip
private
def needs_convert?
needs_different_geometry? || needs_different_format?
needs_different_geometry? || needs_different_format? || needs_metadata_stripping?
end
def needs_different_geometry?
@ -31,5 +31,9 @@ module Paperclip
def needs_different_format?
@format.present? && @current_format != @format
end
def needs_metadata_stripping?
@attachment.instance.respond_to?(:local?) && @attachment.instance.local?
end
end
end