End of day commit

This commit is contained in:
2015-08-10 19:39:06 +02:00
parent 3aef45a94e
commit e1b5ffcd06
30 changed files with 108 additions and 97 deletions
+2 -1
View File
@@ -63,6 +63,7 @@ class User
end
def avatar
return '' unless provider.present?
case provider.to_sym
when :facebook then "http://graph.facebook.com/#{uid}/picture?type=square"
when :instagram then auth_data['info'].try(:[], 'image')
@@ -85,7 +86,7 @@ class User
# This is the user name as it is shown to other users
def friends_name
auth_data['info']['nickname'] rescue ''
auth_data['info']['nickname'] rescue name.to_s
end
def has_active_list?