Don't show svg avatars

main
Bob Mottram 2021-09-13 20:28:41 +01:00
parent d433180047
commit 932f94f72c
1 changed files with 2 additions and 0 deletions

View File

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