From 932f94f72c0c9da642ac69552eb42dc7e7e48e77 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Mon, 13 Sep 2021 20:28:41 +0100 Subject: [PATCH] Don't show svg avatars --- person.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/person.py b/person.py index 3a93612d7..e8fa8386a 100644 --- a/person.py +++ b/person.py @@ -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):