diff --git a/webinterface.py b/webinterface.py index 81884b890..63b531cb6 100644 --- a/webinterface.py +++ b/webinterface.py @@ -65,7 +65,7 @@ def updateAvatarImageCache(session,baseDir: str,httpPrefix: str,actor: str,avata result.raw.decode_content = True copyfileobj(result.raw, f) print('avatar image downloaded for '+actor) - return avatarUrl + return avatarImageFilename.replace(baseDir+'/cache','') except Exception as e: print('Failed to download avatar image: '+str(avatarUrl)) print(e)