mirror of https://gitlab.com/bashrc2/epicyon
Don't show svg avatars
parent
d433180047
commit
932f94f72c
|
@ -1426,6 +1426,8 @@ def getPersonAvatarUrl(baseDir: str, personUrl: str, personCache: {},
|
|||
|
||||
imageExtension = getImageExtensions()
|
||||
for ext in imageExtension:
|
||||
if ext == 'svg':
|
||||
continue
|
||||
if os.path.isfile(avatarImagePath + '.' + ext):
|
||||
return '/avatars/' + actorStr + '.' + ext
|
||||
elif os.path.isfile(avatarImagePath.lower() + '.' + ext):
|
||||
|
|
Loading…
Reference in New Issue