changeset 1779:1fa50da8bfbe

plugin XEP-0277: don't use max_comments if it is 0 in getFromManyWthComments bridge callback
author Goffi <goffi@goffi.org>
date Thu, 07 Jan 2016 22:48:21 +0100
parents 442303b62a16
children 4beb613d277c
files src/plugins/plugin_xep_0277.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/plugins/plugin_xep_0277.py	Thu Jan 07 16:19:43 2016 +0100
+++ b/src/plugins/plugin_xep_0277.py	Thu Jan 07 22:48:21 2016 +0100
@@ -799,7 +799,7 @@
         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,