cleanup switch_to supplier and make facebook image https
This commit is contained in:
+1
-1
@@ -78,7 +78,7 @@ class User
|
||||
def avatar
|
||||
return '' unless provider.present?
|
||||
case provider.to_sym
|
||||
when :facebook then "http://graph.facebook.com/#{uid}/picture?type=square"
|
||||
when :facebook then "https://graph.facebook.com/#{uid}/picture?type=square"
|
||||
when :instagram then auth_data['info'].try(:[], 'image')
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user