Software /
code /
prosody
Comparison
plugins/mod_pep.lua @ 7454:d10b4bfb20c5
mod_pep: Use correct field for full JID (thanks Milan*)
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Fri, 10 Jun 2016 14:55:05 +0200 |
parent | 7453:b1efeee55972 |
child | 7871:09aa0453bdcc |
comparison
equal
deleted
inserted
replaced
7453:b1efeee55972 | 7454:d10b4bfb20c5 |
---|---|
180 if payload and payload.name == "item" then -- <item> | 180 if payload and payload.name == "item" then -- <item> |
181 local id = payload.attr.id or "1"; | 181 local id = payload.attr.id or "1"; |
182 payload.attr.id = id; | 182 payload.attr.id = id; |
183 session.send(st.reply(stanza)); | 183 session.send(st.reply(stanza)); |
184 module:fire_event("pep-publish-item", { | 184 module:fire_event("pep-publish-item", { |
185 node = node, user = jid_bare(session.jid), actor = session.jid, id = id, session = session, item = st.clone(payload); | 185 node = node, user = jid_bare(session.full_jid), actor = session.jid, id = id, session = session, item = st.clone(payload); |
186 }); | 186 }); |
187 return true; | 187 return true; |
188 end | 188 end |
189 end | 189 end |
190 elseif stanza.attr.type == 'get' then | 190 elseif stanza.attr.type == 'get' then |