Comparison

plugins/mod_pubsub/mod_pubsub.lua @ 10673:1a23a58ac84e

Merge 0.11->trunk
author Kim Alvefur <zash@zash.se>
date Thu, 27 Feb 2020 20:05:47 +0100
parent 10070:d7cae7187943
parent 10672:657e61531b33
child 11188:8a29e7206917
comparison
equal deleted inserted replaced
10671:5e1384298e97 10673:1a23a58ac84e
110 end 110 end
111 return true; 111 return true;
112 end 112 end
113 113
114 function is_item_stanza(item) 114 function is_item_stanza(item)
115 return st.is_stanza(item) and item.attr.xmlns == xmlns_pubsub and item.name == "item"; 115 return st.is_stanza(item) and item.attr.xmlns == xmlns_pubsub and item.name == "item" and #item.tags == 1;
116 end 116 end
117 117
118 -- Compose a textual representation of Atom payloads 118 -- Compose a textual representation of Atom payloads
119 module:hook("pubsub-summary/http://www.w3.org/2005/Atom", function (event) 119 module:hook("pubsub-summary/http://www.w3.org/2005/Atom", function (event)
120 local payload = event.payload; 120 local payload = event.payload;