Return path to cached avatar

main2
Bob Mottram 2019-09-14 18:52:55 +01:00
parent 40aaad1a98
commit 7285eaf7e5
1 changed files with 2 additions and 1 deletions

View File

@ -75,6 +75,7 @@ def updateAvatarImageCache(session,baseDir: str,httpPrefix: str,actor: str,avata
storePersonInCache(baseDir,actor,personJson,personCache)
return getPersonAvatarUrl(baseDir,actor,personCache)
return None
return avatarImageFilename.replace(baseDir+'/cache','')
def getPersonAvatarUrl(baseDir: str,personUrl: str,personCache: {}) -> str:
"""Returns the avatar url for the person