diff src/browser/libervia_main.py @ 483:0bbbef1d53a8

server side (blog): use user's avatar a the blog's favicon + small refactorization
author souliane <souliane@mailoo.org>
date Tue, 17 Jun 2014 16:21:42 +0200
parents 437eefa53a01
children 5d8632a7bfde
line wrap: on
line diff
--- a/src/browser/libervia_main.py	Sun Jun 15 18:16:24 2014 +0200
+++ b/src/browser/libervia_main.py	Tue Jun 17 16:21:42 2014 +0200
@@ -807,8 +807,7 @@
 
     def _entityDataUpdatedCb(self, entity_jid_s, key, value):
         if key == "avatar":
-            avatar = '/avatars/%s' % value
-
+            avatar = '/' + C.AVATARS_DIR + value
             self.avatars_cache[entity_jid_s] = avatar
             self.contact_panel.updateAvatar(entity_jid_s, avatar)