10 |
10 |
11 local data = {}; |
11 local data = {}; |
12 local recipients = {}; |
12 local recipients = {}; |
13 |
13 |
14 module:add_identity("pubsub", "pep"); |
14 module:add_identity("pubsub", "pep"); |
|
15 module:add_feature("http://jabber.org/protocol/pubsub#publish"); |
15 |
16 |
16 local function publish(session, node, item) |
17 local function publish(session, node, item) |
17 local stanza = st.message({from=session.full_jid, type='headline'}) |
18 local stanza = st.message({from=session.full_jid, type='headline'}) |
18 :tag('event', {xmlns='http://jabber.org/protocol/pubsub#event'}) |
19 :tag('event', {xmlns='http://jabber.org/protocol/pubsub#event'}) |
19 :tag('items', {node=node}) |
20 :tag('items', {node=node}) |