Submission css
This commit is contained in:
parent
24a9969738
commit
2a4d4e3bc1
6 changed files with 142 additions and 140 deletions
|
@ -10,10 +10,11 @@ from . import registry
|
|||
|
||||
@registry.function
|
||||
def gravatar(profile, size=80, default=None, profile_image=None, email=None):
|
||||
if profile_image:
|
||||
return profile_image
|
||||
if profile and profile.profile_image_url:
|
||||
return profile.profile_image_url
|
||||
if not profile.is_muted:
|
||||
if profile_image:
|
||||
return profile_image
|
||||
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