forked from indymedia/epicyon
Bracket
parent
a9206ee855
commit
2625a7083b
|
@ -256,7 +256,7 @@ def getPersonAvatarUrl(baseDir: str, personUrl: str, personCache: {}) -> str:
|
||||||
# get from locally stored image
|
# get from locally stored image
|
||||||
actorStr = personJson['id'].replace('/', '-')
|
actorStr = personJson['id'].replace('/', '-')
|
||||||
avatarImagePath = \
|
avatarImagePath = \
|
||||||
getFileCaseInsensitive(baseDir + '/cache/avatars/' + actorStr
|
getFileCaseInsensitive(baseDir + '/cache/avatars/' + actorStr)
|
||||||
if os.path.isfile(avatarImagePath + '.png'):
|
if os.path.isfile(avatarImagePath + '.png'):
|
||||||
return '/avatars/' + actorStr + '.png'
|
return '/avatars/' + actorStr + '.png'
|
||||||
elif os.path.isfile(avatarImagePath + '.jpg'):
|
elif os.path.isfile(avatarImagePath + '.jpg'):
|
||||||
|
|
Loading…
Reference in New Issue