mirror of
https://ghfast.top/https://github.com/discourse/discourse-animated-avatars.git
synced 2026-07-15 11:37:01 +08:00
12 lines
294 B
Ruby
12 lines
294 B
Ruby
# frozen_string_literal: true
|
|
|
|
module DiscourseAnimatedAvatars
|
|
module UserAvatarsControllerExtension
|
|
extend ActiveSupport::Concern
|
|
|
|
def get_optimized_image(upload, size)
|
|
return upload if (upload.extension == "gif" && request.format == "image/gif")
|
|
super
|
|
end
|
|
end
|
|
end
|