Mercurial > libervia-backend
changeset 4218:c0f3f29377f1
plugin XEP-0384: be sure to have `open` access model for created nodes.
author | Goffi <goffi@goffi.org> |
---|---|
date | Tue, 05 Mar 2024 17:31:36 +0100 |
parents | b53b6dc1f929 |
children | 1b5cf2ee1d86 |
files | libervia/backend/plugins/plugin_xep_0384.py |
diffstat | 1 files changed, 5 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/libervia/backend/plugins/plugin_xep_0384.py Tue Mar 05 17:31:36 2024 +0100 +++ b/libervia/backend/plugins/plugin_xep_0384.py Tue Mar 05 17:31:36 2024 +0100 @@ -873,6 +873,7 @@ item_id=str(bundle.device_id), extra={ XEP_0060.EXTRA_PUBLISH_OPTIONS: { + XEP_0060.OPT_ACCESS_MODEL: "open", XEP_0060.OPT_MAX_ITEMS: "max" }, XEP_0060.EXTRA_ON_PRECOND_NOT_MET: "raise" @@ -912,7 +913,10 @@ xml_tools.et_elt_2_domish_elt(element), item_id=xep_0060.ID_SINGLETON, extra={ - XEP_0060.EXTRA_PUBLISH_OPTIONS: { XEP_0060.OPT_MAX_ITEMS: 1 }, + XEP_0060.EXTRA_PUBLISH_OPTIONS: { + XEP_0060.OPT_ACCESS_MODEL: "open", + XEP_0060.OPT_MAX_ITEMS: 1 + }, XEP_0060.EXTRA_ON_PRECOND_NOT_MET: "publish_without_options" } )