Most common result first

main
Bob Mottram 2021-09-13 20:39:43 +01:00
parent fe99792df9
commit 2f70c6acff
1 changed files with 3 additions and 3 deletions

View File

@ -1434,11 +1434,11 @@ def getPersonAvatarUrl(baseDir: str, personUrl: str, personCache: {},
imPath = '/avatars/' + actorStr.lower() + '.' + ext
if not os.path.isfile(imFilename):
continue
if ext == 'svg':
if ext != 'svg':
return imPath
else:
if not dangerousSVG(imFilename, False):
return imPath
else:
return imPath
if personJson.get('icon'):
if personJson['icon'].get('url'):