Skip to content
This repository has been archived by the owner on Feb 22, 2024. It is now read-only.

Commit

Permalink
Merge branch 'blackmad-develop' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
eriktaubeneck committed Jul 10, 2014
2 parents 4d2d3ae + f720cfa commit e67ecc7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion flask_social/providers/foursquare.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
from __future__ import absolute_import

import foursquare
import urlparse

config = {
'id': 'foursquare',
Expand Down Expand Up @@ -52,7 +53,8 @@ def get_connection_values(response, **kwargs):
api = foursquare.Foursquare(access_token=access_token)
user = api.users()['user']
profile_url = 'http://www.foursquare.com/user/' + user['id']
image_url = '%s%s' % (user['photo']['prefix'], user['photo']['suffix'][1:])
image_url = urlparse.urljoin(user['photo']['prefix'],
user['photo']['suffix'])

return dict(
provider_id=config['id'],
Expand Down

0 comments on commit e67ecc7

Please sign in to comment.