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
|
imPath = '/avatars/' + actorStr.lower() + '.' + ext
|
||||||
if not os.path.isfile(imFilename):
|
if not os.path.isfile(imFilename):
|
||||||
continue
|
continue
|
||||||
if ext == 'svg':
|
if ext != 'svg':
|
||||||
if not dangerousSVG(imFilename, False):
|
|
||||||
return imPath
|
return imPath
|
||||||
else:
|
else:
|
||||||
|
if not dangerousSVG(imFilename, False):
|
||||||
return imPath
|
return imPath
|
||||||
|
|
||||||
if personJson.get('icon'):
|
if personJson.get('icon'):
|
||||||
|
|
Loading…
Reference in New Issue