changeset 4018:86efd854dee1

plugin XEP-0277: ensure that `max-items` is set to `max` when creating a node
author Goffi <goffi@goffi.org>
date Mon, 20 Mar 2023 12:01:13 +0100
parents 4a2c261646b6
children 7bf7677b893d
files sat/plugins/plugin_xep_0277.py
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/sat/plugins/plugin_xep_0277.py	Mon Mar 20 11:47:13 2023 +0100
+++ b/sat/plugins/plugin_xep_0277.py	Mon Mar 20 12:01:13 2023 +0100
@@ -852,6 +852,7 @@
 
         options = {
             self._p.OPT_ACCESS_MODEL: access,
+            self._p.OPT_MAX_ITEMS: "max",
             self._p.OPT_PERSIST_ITEMS: 1,
             self._p.OPT_DELIVER_PAYLOADS: 1,
             self._p.OPT_SEND_ITEM_SUBSCRIBE: 1,
@@ -1246,6 +1247,7 @@
 
         _options = {
             self._p.OPT_ACCESS_MODEL: access,
+            self._p.OPT_MAX_ITEMS: "max",
             self._p.OPT_PERSIST_ITEMS: 1,
             self._p.OPT_DELIVER_PAYLOADS: 1,
             self._p.OPT_SEND_ITEM_SUBSCRIBE: 1,