+2008-08-26 Christophe Romain <christophe.romain@process-one.net>
+
+ * src/mod_pubsub/mod_pubsub.erl: get_items bugfix (EJAB-716)
+
2008-08-25 Christophe Romain <christophe.romain@process-one.net>
* src/mod_privacy_odbc.erl: Prevent case_clause error when
({xmlelement, "item", ItemAttrs, _}, Acc) ->
case xml:get_attr_s("id", ItemAttrs) of
"" -> Acc;
- ItemID -> ItemID
+ ItemID -> [ItemID|Acc]
end;
(_, Acc) ->
Acc
[] ->
Items;
_ ->
- lists:filter(fun(Item) ->
- lists:member(Item, ItemIDs)
+ lists:filter(fun(#pubsub_item{itemid = {ItemId, _}}) ->
+ lists:member(ItemId, ItemIDs)
end, Items)
end,
%% Generate the XML response (Item list), limiting the