From 7285eaf7e5138a748ab010e6b3402230a5d4591f Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sat, 14 Sep 2019 18:52:55 +0100 Subject: [PATCH] Return path to cached avatar --- webinterface.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/webinterface.py b/webinterface.py index 63b531cb6..3010b74dc 100644 --- a/webinterface.py +++ b/webinterface.py @@ -74,7 +74,8 @@ def updateAvatarImageCache(session,baseDir: str,httpPrefix: str,actor: str,avata if personJson: storePersonInCache(baseDir,actor,personJson,personCache) return getPersonAvatarUrl(baseDir,actor,personCache) - return None + return None + return avatarImageFilename.replace(baseDir+'/cache','') def getPersonAvatarUrl(baseDir: str,personUrl: str,personCache: {}) -> str: """Returns the avatar url for the person