From 40aaad1a98d66adbb4ef94ed1df6322e6dc88fc7 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sat, 14 Sep 2019 18:47:06 +0100 Subject: [PATCH] Use cached link to avatar image --- webinterface.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webinterface.py b/webinterface.py index 81884b89..63b531cb 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)