changeset 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 0a6d4168968a
children 7af29260ecb8
files sat/plugins/plugin_misc_forums.py sat/plugins/plugin_misc_lists.py sat/plugins/plugin_tickets_import.py sat/plugins/plugin_xep_0277.py
diffstat 4 files changed, 0 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/sat/plugins/plugin_misc_forums.py	Thu Oct 06 17:50:54 2022 +0200
+++ b/sat/plugins/plugin_misc_forums.py	Fri Oct 07 22:22:13 2022 +0200
@@ -58,7 +58,6 @@
         self._node_options = {
             self._p.OPT_ACCESS_MODEL: self._p.ACCESS_OPEN,
             self._p.OPT_PERSIST_ITEMS: 1,
-            self._p.OPT_MAX_ITEMS: -1,
             self._p.OPT_DELIVER_PAYLOADS: 1,
             self._p.OPT_SEND_ITEM_SUBSCRIBE: 1,
             self._p.OPT_PUBLISH_MODEL: self._p.ACCESS_OPEN,
--- a/sat/plugins/plugin_misc_lists.py	Thu Oct 06 17:50:54 2022 +0200
+++ b/sat/plugins/plugin_misc_lists.py	Fri Oct 07 22:22:13 2022 +0200
@@ -367,7 +367,6 @@
             options = {
                 self._p.OPT_ACCESS_MODEL: self._p.ACCESS_OPEN,
                 self._p.OPT_PERSIST_ITEMS: 1,
-                self._p.OPT_MAX_ITEMS: -1,
                 self._p.OPT_DELIVER_PAYLOADS: 1,
                 self._p.OPT_SEND_ITEM_SUBSCRIBE: 1,
                 self._p.OPT_PUBLISH_MODEL: self._p.ACCESS_OPEN,
--- a/sat/plugins/plugin_tickets_import.py	Thu Oct 06 17:50:54 2022 +0200
+++ b/sat/plugins/plugin_tickets_import.py	Fri Oct 07 22:22:13 2022 +0200
@@ -137,7 +137,6 @@
         node_options = {
             self._p.OPT_ACCESS_MODEL: self._p.ACCESS_OPEN,
             self._p.OPT_PERSIST_ITEMS: 1,
-            self._p.OPT_MAX_ITEMS: -1,
             self._p.OPT_DELIVER_PAYLOADS: 1,
             self._p.OPT_SEND_ITEM_SUBSCRIBE: 1,
             self._p.OPT_PUBLISH_MODEL: self._p.ACCESS_OPEN,
--- a/sat/plugins/plugin_xep_0277.py	Thu Oct 06 17:50:54 2022 +0200
+++ b/sat/plugins/plugin_xep_0277.py	Fri Oct 07 22:22:13 2022 +0200
@@ -853,7 +853,6 @@
         options = {
             self._p.OPT_ACCESS_MODEL: access,
             self._p.OPT_PERSIST_ITEMS: 1,
-            self._p.OPT_MAX_ITEMS: -1,
             self._p.OPT_DELIVER_PAYLOADS: 1,
             self._p.OPT_SEND_ITEM_SUBSCRIBE: 1,
             # FIXME: would it make sense to restrict publish model to subscribers?
@@ -1227,7 +1226,6 @@
         _options = {
             self._p.OPT_ACCESS_MODEL: access,
             self._p.OPT_PERSIST_ITEMS: 1,
-            self._p.OPT_MAX_ITEMS: -1,
             self._p.OPT_DELIVER_PAYLOADS: 1,
             self._p.OPT_SEND_ITEM_SUBSCRIBE: 1,
         }