2
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2025-09-06 10:50:21 +08:00

Make it square!

This commit is contained in:
Rafael dos Santos Silva 2016-09-28 12:49:22 -03:00 committed by GitHub
parent f5746f490f
commit 5bdaaca848

View file

@ -1,6 +1,6 @@
class Auth::FacebookAuthenticator < Auth::Authenticator class Auth::FacebookAuthenticator < Auth::Authenticator
AVATAR_HEIGHT = 480 AVATAR_SIZE = 480
def name def name
"facebook" "facebook"
@ -135,7 +135,7 @@ class Auth::FacebookAuthenticator < Auth::Authenticator
end end
def add_avatar_parameters(avatar_url) def add_avatar_parameters(avatar_url)
"#{avatar_url}?height=#{AVATAR_HEIGHT}" "#{avatar_url}?height=#{AVATAR_SIZE}&width=#{AVATAR_SIZE}"
end end
end end