plugin XEP-0277: don't use max_comments if it is 0 in getFromManyWthComments bridge callback

This commit is contained in:
Goffi 2016-01-07 22:48:21 +01:00
commit 48e8286c1b

View file

@ -799,7 +799,7 @@ class XEP_0277(object):
publishers_type, publishers = self._checkPublishers(publishers_type, publishers)
extra = self._p.parseExtra(extra_dict)
extra_comments = self._p.parseExtra(extra_comments_dict)
return self.mbGetFromManyWithComments(publishers_type, publishers, max_items or None, max_comments,
return self.mbGetFromManyWithComments(publishers_type, publishers, max_items or None, max_comments or None,
extra.rsm_request,
extra.extra,
extra_comments.rsm_request,