Use cached link to avatar image

main2
Bob Mottram 2019-09-14 18:47:06 +01:00
parent 1346d0c932
commit 40aaad1a98
1 changed files with 1 additions and 1 deletions

View File

@ -65,7 +65,7 @@ def updateAvatarImageCache(session,baseDir: str,httpPrefix: str,actor: str,avata
result.raw.decode_content = True result.raw.decode_content = True
copyfileobj(result.raw, f) copyfileobj(result.raw, f)
print('avatar image downloaded for '+actor) print('avatar image downloaded for '+actor)
return avatarUrl return avatarImageFilename.replace(baseDir+'/cache','')
except Exception as e: except Exception as e:
print('Failed to download avatar image: '+str(avatarUrl)) print('Failed to download avatar image: '+str(avatarUrl))
print(e) print(e)