diff src/server/blog.py @ 606:7af8f4ab3675 frontends_multi_profiles

browser side: fixed avatar getting + better DEFAULT/EMPTY avatars constants + use of jid.JID for microblog's author
author Goffi <goffi@goffi.org>
date Mon, 09 Feb 2015 21:55:16 +0100
parents e588335b6aa8
children a90cc8fc9605
line wrap: on
line diff
--- a/src/server/blog.py	Mon Feb 09 21:46:15 2015 +0100
+++ b/src/server/blog.py	Mon Feb 09 21:55:16 2015 +0100
@@ -96,14 +96,14 @@
         except IndexError:  # impossible to guess the entity
             return
         log.debug(_("Using default avatar for entity %s") % entity_jid_s)
-        self.avatars_cache[entity_jid_s] = C.DEFAULT_AVATAR
-        self.waiting_deferreds[entity_jid_s][1].callback(C.DEFAULT_AVATAR)
+        self.avatars_cache[entity_jid_s] = C.DEFAULT_AVATAR_URL
+        self.waiting_deferreds[entity_jid_s][1].callback(C.DEFAULT_AVATAR_URL)
         del self.waiting_deferreds[entity_jid_s]
 
     def getAvatar(self, profile):
         """Get the avatar of the given profile
 
-        @param profile (str):
+        @param profile(unicode): %(doc_profile)s
         @return: deferred avatar path, relative to the server's root
         """
         jid_s = (profile + '@' + self.host.bridge.getNewAccountDomain()).lower()