Software /
code /
prosody
Comparison
plugins/mod_pubsub/mod_pubsub.lua @ 9188:ef2616ade453
mod_pubsub: Add support for thin notifications (without the full payload)
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Thu, 16 Aug 2018 15:20:29 +0200 |
parent | 9187:bd452e4f5a13 |
child | 9234:d00e8ec7ece2 |
comparison
equal
deleted
inserted
replaced
9187:bd452e4f5a13 | 9188:ef2616ade453 |
---|---|
58 | 58 |
59 if item then | 59 if item then |
60 item = st.clone(item); | 60 item = st.clone(item); |
61 item.attr.xmlns = nil; -- Clear the pubsub namespace | 61 item.attr.xmlns = nil; -- Clear the pubsub namespace |
62 if kind == "items" then | 62 if kind == "items" then |
63 if node_obj and node_obj.config.include_payload == false then | |
64 item:maptags(function () return nil; end); | |
65 end | |
63 if expose_publisher and actor then | 66 if expose_publisher and actor then |
64 item.attr.publisher = actor | 67 item.attr.publisher = actor |
65 end | 68 end |
66 end | 69 end |
67 end | 70 end |