Mercurial > prosody-modules
comparison mod_profile/mod_profile.lua @ 3191:a1c92d62b861
mod_profile: Add xmlns on <item> in order to pass item validation in mod_pubsub
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Tue, 24 Jul 2018 16:28:02 +0200 |
| parents | 76a2aca48b4f |
| children | 134e73ebfa5f |
comparison
equal
deleted
inserted
replaced
| 3190:76a2aca48b4f | 3191:a1c92d62b861 |
|---|---|
| 49 end | 49 end |
| 50 return "application/octet-stream"; | 50 return "application/octet-stream"; |
| 51 end | 51 end |
| 52 | 52 |
| 53 local function item_container(id, payload) | 53 local function item_container(id, payload) |
| 54 return id, st.stanza("item", { id = "current" }) | 54 return id, st.stanza("item", { id = "current", xmlns = "http://jabber.org/protocol/pubsub"; }) |
| 55 :add_child(payload); | 55 :add_child(payload); |
| 56 end | 56 end |
| 57 | 57 |
| 58 local function update_pep(username, data, pep) | 58 local function update_pep(username, data, pep) |
| 59 pep = pep or pep_plus.get_pep_service(username); | 59 pep = pep or pep_plus.get_pep_service(username); |
