Software /
code /
prosody
Comparison
util/pubsub.lua @ 11854:b605cbd5f13b
mod_pubsub,mod_pep: Implement 'send_last_published_item' option #1436
Default left as 'never' in mod_pubsub to preserve the previous behavior.
Unclear if this is desirable, but can always be changed later.
In mod_pep this allows turning off the automatic resending of most
recent item.
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Tue, 19 Oct 2021 18:11:50 +0200 |
parent | 11767:5610f7c5b261 |
child | 12153:26af75c20163 |
comparison
equal
deleted
inserted
replaced
11853:ae5ac9830add | 11854:b605cbd5f13b |
---|---|
134 local default_node_config = { | 134 local default_node_config = { |
135 ["persist_items"] = true; | 135 ["persist_items"] = true; |
136 ["max_items"] = 20; | 136 ["max_items"] = 20; |
137 ["access_model"] = "open"; | 137 ["access_model"] = "open"; |
138 ["publish_model"] = "publishers"; | 138 ["publish_model"] = "publishers"; |
139 ["send_last_published_item"] = "never"; | |
139 }; | 140 }; |
140 local default_node_config_mt = { __index = default_node_config }; | 141 local default_node_config_mt = { __index = default_node_config }; |
141 | 142 |
142 -- Storage helper functions | 143 -- Storage helper functions |
143 | 144 |