Mercurial > prosody-modules
comparison mod_profile/mod_profile.lua @ 3246:2a54b331f011
mod_profile: Pass item id onto pubsub container element
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Mon, 20 Aug 2018 21:40:48 +0200 |
| parents | 1d57f485efef |
| children | 60821653c5a9 |
comparison
equal
deleted
inserted
replaced
| 3245:1d57f485efef | 3246:2a54b331f011 |
|---|---|
| 50 end | 50 end |
| 51 return "application/octet-stream"; | 51 return "application/octet-stream"; |
| 52 end | 52 end |
| 53 | 53 |
| 54 local function item_container(id, payload) | 54 local function item_container(id, payload) |
| 55 return id, st.stanza("item", { id = "current", xmlns = "http://jabber.org/protocol/pubsub"; }) | 55 return id, st.stanza("item", { id = id or "current", xmlns = "http://jabber.org/protocol/pubsub"; }) |
| 56 :add_child(payload); | 56 :add_child(payload); |
| 57 end | 57 end |
| 58 | 58 |
| 59 local function update_pep(username, data, pep) | 59 local function update_pep(username, data, pep) |
| 60 pep = pep or pep_plus.get_pep_service(username); | 60 pep = pep or pep_plus.get_pep_service(username); |
