PEP: Fixed namespace for the <item> element in PEP broadcasts.
authorWaqas Hussain <waqas20@gmail.com>
Wed, 21 Oct 2009 21:12:24 +0000 (02:12 +0500)
committerWaqas Hussain <waqas20@gmail.com>
Wed, 21 Oct 2009 21:12:24 +0000 (02:12 +0500)
plugins/mod_pep.lua

index 842f1fcec04af2609b2513b28f25eaef64957edf..45cbc9fcf41f746d2637a76e0513a636258bd25c 100644 (file)
@@ -29,6 +29,7 @@ module:add_identity("pubsub", "pep", "Prosody");
 module:add_feature("http://jabber.org/protocol/pubsub#publish");
 
 local function publish(session, node, item)
+       item.attr.xmlns = nil;
        local disable = #item.tags ~= 1 or #item.tags[1].tags == 0;
        if #item.tags == 0 then item.name = "retract"; end
        local bare = session.username..'@'..session.host;