changeset 124:6d1f4a3da29b

server: fixed buggy vcard cache retrieving, fixes avatar issue
author Goffi <goffi@goffi.org>
date Mon, 12 Dec 2011 22:26:55 +0100
parents 5cb852d9757e
children f9d63624699f
files libervia.tac
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libervia.tac	Sat Dec 10 12:26:43 2011 +0100
+++ b/libervia.tac	Mon Dec 12 22:26:55 2011 +0100
@@ -277,7 +277,8 @@
         """Get the avatar of a contact
         @param jid: jid of contact from who we want the avatar
         @return: path to the avatar image"""
-        return self.sat_host.bridge.getCardCache(jid)
+        profile = ISATSession(self.session).profile
+        return self.sat_host.bridge.getCardCache(jid, profile)
 
 class Register(jsonrpc.JSONRPC):
     """This class manage the registration procedure with SàT