diff options
author | Kim Alvefur <zash@zash.se> | 2024-11-08 02:12:45 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2024-11-08 02:12:45 +0100 |
commit | e32aba4c5379e98d40e7f1a73dbb172f5a30c151 (patch) | |
tree | 8e97a4497e62d54a56b79d99e5c37721c529a4c5 /plugins/mod_pubsub/mod_pubsub.lua | |
parent | 9005d35b4850dcde6d8fb4cba713f50a641a5b88 (diff) | |
download | prosody-e32aba4c5379e98d40e7f1a73dbb172f5a30c151.tar.gz prosody-e32aba4c5379e98d40e7f1a73dbb172f5a30c151.zip |
mod_pubsub: Use new metadata method
No longer bypasses access control to retrieve this config subset, which
is also explicitly named in the service config now.
Diffstat (limited to 'plugins/mod_pubsub/mod_pubsub.lua')
-rw-r--r-- | plugins/mod_pubsub/mod_pubsub.lua | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/plugins/mod_pubsub/mod_pubsub.lua b/plugins/mod_pubsub/mod_pubsub.lua index 6efc419f..c17d9e63 100644 --- a/plugins/mod_pubsub/mod_pubsub.lua +++ b/plugins/mod_pubsub/mod_pubsub.lua @@ -256,6 +256,13 @@ function module.load() broadcaster = simple_broadcast; itemcheck = is_item_stanza; check_node_config = check_node_config; + metadata_subset = { + "title"; + "description"; + "payload_type"; + "access_model"; + "publish_model"; + }; get_affiliation = get_affiliation; jid = module.host; |