mirror of https://gitlab.com/bashrc2/epicyon
Most common result first
parent
fe99792df9
commit
2f70c6acff
|
@ -1434,10 +1434,10 @@ def getPersonAvatarUrl(baseDir: str, personUrl: str, personCache: {},
|
|||
imPath = '/avatars/' + actorStr.lower() + '.' + ext
|
||||
if not os.path.isfile(imFilename):
|
||||
continue
|
||||
if ext == 'svg':
|
||||
if not dangerousSVG(imFilename, False):
|
||||
if ext != 'svg':
|
||||
return imPath
|
||||
else:
|
||||
if not dangerousSVG(imFilename, False):
|
||||
return imPath
|
||||
|
||||
if personJson.get('icon'):
|
||||
|
|
Loading…
Reference in New Issue