Fix user search
This commit is contained in:
parent
2a4d4e3bc1
commit
c8b7848f5a
1 changed files with 1 additions and 1 deletions
|
@ -10,7 +10,7 @@ from . import registry
|
|||
|
||||
@registry.function
|
||||
def gravatar(profile, size=80, default=None, profile_image=None, email=None):
|
||||
if not profile.is_muted:
|
||||
if profile and not profile.is_muted:
|
||||
if profile_image:
|
||||
return profile_image
|
||||
if profile and profile.profile_image_url:
|
||||
|
|
Loading…
Reference in a new issue