Try fixing memcache error
This commit is contained in:
parent
8da03aebb0
commit
67a3c7274e
2 changed files with 9 additions and 6 deletions
|
@ -12,8 +12,8 @@ from . import registry
|
|||
def gravatar(profile, size=80, default=None, profile_image=None, email=None):
|
||||
if profile_image:
|
||||
return profile_image
|
||||
if profile and profile.cached_profile_image:
|
||||
return profile.cached_profile_image.url
|
||||
if profile and profile.profile_image_url:
|
||||
return profile.profile_image_url
|
||||
if profile:
|
||||
email = email or profile.email
|
||||
if default is None:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue