lib/social_profile/providers/vkontakte.rb in social_profile-0.2.0 vs lib/social_profile/providers/vkontakte.rb in social_profile-0.2.1
- old
+ new
@@ -1,12 +1,11 @@
-# encoding: utf-8
module SocialProfile
module Providers
class Vkontakte < Base
def picture_url
@picture_url ||= begin
- if auth_hash['extra'] && auth_hash['extra']['raw_info']
- photo = auth_hash['extra']['raw_info']['photo_big']
+ if auth_hash['extra'] && info = auth_hash['extra']['raw_info']
+ photo = info['photo_big'] || info['photo_200_orig']
Utils.blank?(photo) ? nil : photo
end
end
end