forked from indymedia/epicyon
Return path to cached avatar
parent
40aaad1a98
commit
7285eaf7e5
|
@ -75,6 +75,7 @@ def updateAvatarImageCache(session,baseDir: str,httpPrefix: str,actor: str,avata
|
||||||
storePersonInCache(baseDir,actor,personJson,personCache)
|
storePersonInCache(baseDir,actor,personJson,personCache)
|
||||||
return getPersonAvatarUrl(baseDir,actor,personCache)
|
return getPersonAvatarUrl(baseDir,actor,personCache)
|
||||||
return None
|
return None
|
||||||
|
return avatarImageFilename.replace(baseDir+'/cache','')
|
||||||
|
|
||||||
def getPersonAvatarUrl(baseDir: str,personUrl: str,personCache: {}) -> str:
|
def getPersonAvatarUrl(baseDir: str,personUrl: str,personCache: {}) -> str:
|
||||||
"""Returns the avatar url for the person
|
"""Returns the avatar url for the person
|
||||||
|
|
Loading…
Reference in New Issue