comparison src/plugins/plugin_xep_0277.py @ 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 0876352459e5
children 1359ad0b37c2
comparison
equal deleted inserted replaced
1778:442303b62a16 1779:1fa50da8bfbe
797 max_items = None if max_items == C.NO_LIMIT else max_items 797 max_items = None if max_items == C.NO_LIMIT else max_items
798 max_comments = None if max_comments == C.NO_LIMIT else max_comments 798 max_comments = None if max_comments == C.NO_LIMIT else max_comments
799 publishers_type, publishers = self._checkPublishers(publishers_type, publishers) 799 publishers_type, publishers = self._checkPublishers(publishers_type, publishers)
800 extra = self._p.parseExtra(extra_dict) 800 extra = self._p.parseExtra(extra_dict)
801 extra_comments = self._p.parseExtra(extra_comments_dict) 801 extra_comments = self._p.parseExtra(extra_comments_dict)
802 return self.mbGetFromManyWithComments(publishers_type, publishers, max_items or None, max_comments, 802 return self.mbGetFromManyWithComments(publishers_type, publishers, max_items or None, max_comments or None,
803 extra.rsm_request, 803 extra.rsm_request,
804 extra.extra, 804 extra.extra,
805 extra_comments.rsm_request, 805 extra_comments.rsm_request,
806 extra_comments.extra, 806 extra_comments.extra,
807 profile_key) 807 profile_key)