comparison src/server/blog.py @ 916:e9bb7257d051

server (blog): fixed static blog generation: Q&D fix by updating call to avatarGet, avatar is not working at the moment.
author Goffi <goffi@goffi.org>
date Sun, 05 Mar 2017 23:16:32 +0100
parents e9e9d9d893a8
children 67a59552f3e3
comparison
equal deleted inserted replaced
915:e9e9d9d893a8 916:e9bb7257d051
154 bare_jid_s = pub_jid.userhost() 154 bare_jid_s = pub_jid.userhost()
155 try: 155 try:
156 url = self.avatars_cache[bare_jid_s] 156 url = self.avatars_cache[bare_jid_s]
157 except KeyError: 157 except KeyError:
158 self.avatars_cache[bare_jid_s] = '' # avoid to request the vcard several times 158 self.avatars_cache[bare_jid_s] = '' # avoid to request the vcard several times
159 self.host.bridge.getCard(bare_jid_s, C.SERVICE_PROFILE) 159 # self.host.bridge.getCard(bare_jid_s, C.SERVICE_PROFILE)
160 self.host.bridge.avatarGet(bare_jid_s, True, True, C.SERVICE_PROFILE)
160 d = defer.Deferred() 161 d = defer.Deferred()
161 self.waiting_deferreds[bare_jid_s] = d 162 self.waiting_deferreds[bare_jid_s] = d
162 return d 163 return d
163 return defer.succeed(url if url else C.DEFAULT_AVATAR_URL) 164 return defer.succeed(url if url else C.DEFAULT_AVATAR_URL)
164 165