mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-23 23:58:31 -05:00
allow avatars up to 1000px
This commit is contained in:
parent
3588780ac3
commit
c104e4c022
1 changed files with 1 additions and 1 deletions
|
@ -83,7 +83,7 @@ class UserAvatarsController < ApplicationController
|
||||||
return render_blank unless upload_id > 0 && user_avatar = user.user_avatar
|
return render_blank unless upload_id > 0 && user_avatar = user.user_avatar
|
||||||
|
|
||||||
size = params[:size].to_i
|
size = params[:size].to_i
|
||||||
return render_blank if size < 8 || size > 500
|
return render_blank if size < 8 || size > 1000
|
||||||
|
|
||||||
if !Discourse.avatar_sizes.include?(size) && Discourse.store.external?
|
if !Discourse.avatar_sizes.include?(size) && Discourse.store.external?
|
||||||
closest = Discourse.avatar_sizes.to_a.min { |a,b| (size-a).abs <=> (size-b).abs }
|
closest = Discourse.avatar_sizes.to_a.min { |a,b| (size-a).abs <=> (size-b).abs }
|
||||||
|
|
Loading…
Reference in a new issue