mirror of
https://github.com/discourse/discourse.git
synced 2025-09-06 10:50:21 +08:00
FIX: crop avatars on the server instead of the client
FIX: support for dots in S3 bucket names
This commit is contained in:
parent
bdde331e7a
commit
85d4d3223c
9 changed files with 51 additions and 169 deletions
|
@ -82,9 +82,7 @@ module Discourse
|
|||
# Don't cache until we can get a notification from site settings to expire cache
|
||||
set = Set.new(SiteSetting.avatar_sizes.split("|").map(&:to_i))
|
||||
# add retinas which are 2x dpi
|
||||
set.to_a.each do |size|
|
||||
set << size*2
|
||||
end
|
||||
set.to_a.each { |size| set << size * 2 }
|
||||
set
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue