mod_pep: Allow storage of urn:xmpp:avatar:data node (payload only with base64 data)

Sat, 05 Dec 2009 09:43:53 -0800

author
Paul Aurich <paul@darkrain42.org>
date
Sat, 05 Dec 2009 09:43:53 -0800
changeset 2823
b634741acbd0
parent 2822
511dfd88e14c
child 2824
f24664b33a1e

mod_pep: Allow storage of urn:xmpp:avatar:data node (payload only with base64 data)

plugins/mod_pep.lua file | annotate | diff | comparison | revisions
--- a/plugins/mod_pep.lua	Mon Nov 30 16:39:27 2009 +0000
+++ b/plugins/mod_pep.lua	Sat Dec 05 09:43:53 2009 -0800
@@ -39,7 +39,7 @@
 
 local function publish(session, node, item)
 	item.attr.xmlns = nil;
-	local disable = #item.tags ~= 1 or #item.tags[1].tags == 0;
+	local disable = #item.tags ~= 1 or #item.tags[1] == 0;
 	if #item.tags == 0 then item.name = "retract"; end
 	local bare = session.username..'@'..session.host;
 	local stanza = st.message({from=bare, type='headline'})

mercurial