Software /
code /
prosody
Diff
plugins/mod_pubsub/pubsub.lib.lua @ 13486:fdd1438d9ef7
mod_pep: Implement 'roster' (group) access_model
Allows e.g. restricting your vcard4 to only family or similar.
Notes: This does not include roster groups in the configuration form,
so the client will have to get them from the actual roster.
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sun, 03 Dec 2023 23:19:27 +0100 |
parent | 13179:1b1ed555f307 |
child | 13532:9970d333a63f |
line wrap: on
line diff
--- a/plugins/mod_pubsub/pubsub.lib.lua Fri Apr 26 10:37:20 2024 +0100 +++ b/plugins/mod_pubsub/pubsub.lib.lua Sun Dec 03 23:19:27 2023 +0100 @@ -110,6 +110,12 @@ }; }; { + type = "list-multi"; -- TODO some way to inject options + name = "roster_groups_allowed"; + var = "pubsub#roster_groups_allowed"; + label = "Roster groups allowed to subscribe"; + }; + { type = "list-single"; name = "publish_model"; var = "pubsub#publish_model";