diff src/server/blog.py @ 679:a90cc8fc9605

merged branch frontends_multi_profiles
author Goffi <goffi@goffi.org>
date Wed, 18 Mar 2015 16:15:18 +0100
parents c8cca1a373dd 7af8f4ab3675
children 9877607c719a
line wrap: on
line diff
--- a/src/server/blog.py	Thu Feb 05 12:05:32 2015 +0100
+++ b/src/server/blog.py	Wed Mar 18 16:15:18 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()