Mercurial > libervia-backend
comparison src/plugins/plugin_xep_0054.py @ 2258:074c2f157dc9
plugin XEP-0054: fixed not transmitted arguments in getAvatar
author | Goffi <goffi@goffi.org> |
---|---|
date | Sat, 03 Jun 2017 22:24:53 +0200 |
parents | cffa50c9f26b |
children | 8b37a62336c3 |
comparison
equal
deleted
inserted
replaced
2257:0ffa8ba0857c | 2258:074c2f157dc9 |
---|---|
339 except KeyError: | 339 except KeyError: |
340 raise Failure(exceptions.NotFound()) | 340 raise Failure(exceptions.NotFound()) |
341 | 341 |
342 def _getAvatar(self, entity, cache_only, hash_only, profile): | 342 def _getAvatar(self, entity, cache_only, hash_only, profile): |
343 client = self.host.getClient(profile) | 343 client = self.host.getClient(profile) |
344 d = self.getAvatar(client, jid.JID(entity)) | 344 d = self.getAvatar(client, jid.JID(entity), cache_only, hash_only) |
345 d.addErrback(lambda dummy: '') | 345 d.addErrback(lambda dummy: '') |
346 | 346 |
347 return d | 347 return d |
348 | 348 |
349 def getAvatar(self, client, entity, cache_only=True, hash_only=False): | 349 def getAvatar(self, client, entity, cache_only=True, hash_only=False): |