FIX: Use safe navigation operator when looking for avatar URL
This commit is contained in:
parent
404acef6e3
commit
4e2cc9caf0
|
@ -94,7 +94,7 @@ class Auth::ManagedAuthenticator < Auth::Authenticator
|
|||
def after_create_account(user, auth)
|
||||
data = auth[:extra_data]
|
||||
create_association!(data.merge(user: user))
|
||||
retrieve_avatar(user, data["info"]["image"])
|
||||
retrieve_avatar(user, data&.[]("info")&.[]("image"))
|
||||
end
|
||||
|
||||
def retrieve_avatar(user, url)
|
||||
|
|
Loading…
Reference in New Issue