comparison sat/plugins/plugin_xep_0277.py @ 3931:6c5f0fbc519b

plugins (forums, lists, import, XEP-0277): remove invalid `max_items` values
author Goffi <goffi@goffi.org>
date Fri, 07 Oct 2022 22:22:13 +0200
parents 37a1193d90db
children e345d93fb6e5
comparison
equal deleted inserted replaced
3930:0a6d4168968a 3931:6c5f0fbc519b
851 access = parent_node_config.get(self._p.OPT_ACCESS_MODEL, self._p.ACCESS_OPEN) 851 access = parent_node_config.get(self._p.OPT_ACCESS_MODEL, self._p.ACCESS_OPEN)
852 852
853 options = { 853 options = {
854 self._p.OPT_ACCESS_MODEL: access, 854 self._p.OPT_ACCESS_MODEL: access,
855 self._p.OPT_PERSIST_ITEMS: 1, 855 self._p.OPT_PERSIST_ITEMS: 1,
856 self._p.OPT_MAX_ITEMS: -1,
857 self._p.OPT_DELIVER_PAYLOADS: 1, 856 self._p.OPT_DELIVER_PAYLOADS: 1,
858 self._p.OPT_SEND_ITEM_SUBSCRIBE: 1, 857 self._p.OPT_SEND_ITEM_SUBSCRIBE: 1,
859 # FIXME: would it make sense to restrict publish model to subscribers? 858 # FIXME: would it make sense to restrict publish model to subscribers?
860 self._p.OPT_PUBLISH_MODEL: self._p.ACCESS_OPEN, 859 self._p.OPT_PUBLISH_MODEL: self._p.ACCESS_OPEN,
861 } 860 }
1225 client = self.host.getClient(profile_key) 1224 client = self.host.getClient(profile_key)
1226 1225
1227 _options = { 1226 _options = {
1228 self._p.OPT_ACCESS_MODEL: access, 1227 self._p.OPT_ACCESS_MODEL: access,
1229 self._p.OPT_PERSIST_ITEMS: 1, 1228 self._p.OPT_PERSIST_ITEMS: 1,
1230 self._p.OPT_MAX_ITEMS: -1,
1231 self._p.OPT_DELIVER_PAYLOADS: 1, 1229 self._p.OPT_DELIVER_PAYLOADS: 1,
1232 self._p.OPT_SEND_ITEM_SUBSCRIBE: 1, 1230 self._p.OPT_SEND_ITEM_SUBSCRIBE: 1,
1233 } 1231 }
1234 1232
1235 def cb(result): 1233 def cb(result):