# HG changeset patch # User Matthew Wild # Date 1533551022 -3600 # Node ID 74525b8104d5b14dd31dc363db327da9716db204 # Parent 7721794e9e938584aa4ff853867a8223997eb9e1 pubsub.lib: Add support for pubsub#publish_model diff -r 7721794e9e93 -r 74525b8104d5 plugins/mod_pubsub/pubsub.lib.lua --- a/plugins/mod_pubsub/pubsub.lib.lua Mon Aug 06 11:23:09 2018 +0100 +++ b/plugins/mod_pubsub/pubsub.lib.lua Mon Aug 06 11:23:42 2018 +0100 @@ -86,6 +86,16 @@ }; { type = "list-single"; + name = "pubsub#publish_model"; + label = "Specify the publisher model"; + options = { + { value = "publishers" }; + { value = "subscribers" }; + { value = "open" }; + }; + }; + { + type = "list-single"; name = "pubsub#notification_type"; label = "Specify the delivery style for notifications"; options = { @@ -131,6 +141,7 @@ persist_items = "pubsub#persist_items"; notification_type = "pubsub#notification_type"; access_model = "pubsub#access_model"; + publish_model = "pubsub#publish_model"; }; local reverse_config_field_map = {}; for k, v in pairs(config_field_map) do reverse_config_field_map[v] = k; end @@ -144,6 +155,7 @@ ["pubsub#persist_items"] = node_config["persist_items"]; ["pubsub#notification_type"] = node_config["notification_type"]; ["pubsub#access_model"] = node_config["access_model"]; + ["pubsub#publish_model"] = node_config["publish_model"]; } end