]> granicus.if.org Git - ejabberd/commitdiff
reapply previous RSM filtering fix drop by mistake
authorChristophe Romain <christophe.romain@process-one.net>
Thu, 27 Aug 2009 22:23:39 +0000 (22:23 +0000)
committerChristophe Romain <christophe.romain@process-one.net>
Thu, 27 Aug 2009 22:23:39 +0000 (22:23 +0000)
SVN Revision: 2555

src/mod_pubsub/mod_pubsub_odbc.erl

index 86cc1d007af2d17e9758373ae289137d0e4418ff..5bf196dfe614ece517ccd509b95fe3a5a85ce2be 100644 (file)
@@ -1093,10 +1093,9 @@ iq_pubsub(Host, ServerHost, From, IQType, SubEl, Lang, Access, Plugins) ->
 
 iq_pubsub_owner(Host, ServerHost, From, IQType, SubEl, Lang) ->
     {xmlelement, _, _, SubEls} = SubEl,
-    NoRSM = lists:filter(fun({xmlelement, Name, _, _}) ->
-                           Name == "set"
-                       end, SubEls),
-    Action = xml:remove_cdata(SubEls) -- NoRSM,
+    Action = lists:filter(fun({xmlelement, "set", _, _}) -> false;
+                           (_) -> true
+                       end, xml:remove_cdata(SubEls)),
     case Action of
        [{xmlelement, Name, Attrs, Els}] ->
            Node = case Host of