Software /
code /
prosody
Comparison
plugins/mod_pep.lua @ 8124:20e92f6688b2
mod_pep: Split long line [luacheck]
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Mon, 24 Apr 2017 22:19:27 +0200 |
parent | 7871:09aa0453bdcc |
child | 8125:5f0c642a41a1 |
comparison
equal
deleted
inserted
replaced
8123:bd591c5fc1bf | 8124:20e92f6688b2 |
---|---|
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.full_jid), actor = session.jid, id = id, session = session, item = st.clone(payload); | 185 node = node, user = jid_bare(session.full_jid), actor = session.jid, |
186 id = id, session = session, item = st.clone(payload); | |
186 }); | 187 }); |
187 return true; | 188 return true; |
188 else | 189 else |
189 module:log("debug", "Payload is missing the <item>", node); | 190 module:log("debug", "Payload is missing the <item>", node); |
190 end | 191 end |