Try fixing memcache error

This commit is contained in:
cuom1999 2023-10-10 21:01:06 -05:00
parent 8da03aebb0
commit 67a3c7274e
2 changed files with 9 additions and 6 deletions

View file

@ -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: