mod_pep: Use correct field for full JID (thanks Milan*)
authorKim Alvefur <zash@zash.se>
Fri, 10 Jun 2016 14:55:05 +0200
changeset 7457 d10b4bfb20c5
parent 7456 b1efeee55972
child 7458 82d8c11ab0cb
mod_pep: Use correct field for full JID (thanks Milan*)
plugins/mod_pep.lua
--- a/plugins/mod_pep.lua	Thu Jun 09 10:30:33 2016 +0200
+++ b/plugins/mod_pep.lua	Fri Jun 10 14:55:05 2016 +0200
@@ -182,7 +182,7 @@
 				payload.attr.id = id;
 				session.send(st.reply(stanza));
 				module:fire_event("pep-publish-item", {
-					node = node, user = jid_bare(session.jid), actor = session.jid, id = id, session = session, item = st.clone(payload);
+					node = node, user = jid_bare(session.full_jid), actor = session.jid, id = id, session = session, item = st.clone(payload);
 				});
 				return true;
 			end