aboutsummaryrefslogtreecommitdiff
path: root/src/mod_pubsub/node_default.erl
diff options
context:
space:
mode:
authorChristophe Romain <christophe.romain@process-one.net>2008-09-25 17:26:06 +0000
committerChristophe Romain <christophe.romain@process-one.net>2008-09-25 17:26:06 +0000
commit70dd325aef0fca218447a8b731b72465b6d07f43 (patch)
tree78decfd9ea2d377a0ce121a6dbe9d9cede90a819 /src/mod_pubsub/node_default.erl
parent* src/mod_configure.erl: Fix adhoc commands reply types for "get-online-users... (diff)
EJAB-739 and EJAB-751 improvements
SVN Revision: 1576
Diffstat (limited to 'src/mod_pubsub/node_default.erl')
-rw-r--r--src/mod_pubsub/node_default.erl12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/mod_pubsub/node_default.erl b/src/mod_pubsub/node_default.erl
index ddda469c6..077bdc70c 100644
--- a/src/mod_pubsub/node_default.erl
+++ b/src/mod_pubsub/node_default.erl
@@ -1,4 +1,4 @@
-%%% ====================================================================
+ %%% ====================================================================
%%% ``The contents of this file are subject to the Erlang Public License,
%%% Version 1.1, (the "License"); you may not use this file except in
%%% compliance with the License. You should have received a copy of the
@@ -70,7 +70,7 @@
get_state/3,
set_state/1,
get_items/7,
- get_items/2,
+ get_items/3,
get_item/8,
get_item/3,
set_item/1,
@@ -705,9 +705,9 @@ set_state(_) ->
%% relational database), or they can even decide not to persist any items.</p>
%% <p>If a PubSub plugin wants to delegate the item storage to the default node,
%% they can implement this function like this:
-%% ```get_items(Host, Node) ->
-%% node_default:get_items(Host, Node).'''</p>
-get_items(Host, Node) ->
+%% ```get_items(Host, Node, From) ->
+%% node_default:get_items(Host, Node, From).'''</p>
+get_items(Host, Node, _From) ->
Items = mnesia:match_object(
#pubsub_item{itemid = {'_', {Host, Node}}, _ = '_'}),
{result, Items}.
@@ -747,7 +747,7 @@ get_items(Host, Node, JID, AccessModel, PresenceSubscription, RosterGroup, _SubI
%% % Payment is required for a subscription
%% {error, ?ERR_PAYMENT_REQUIRED};
true ->
- get_items(Host, Node)
+ get_items(Host, Node, JID)
end.
%% @spec (Host, Node, ItemId) -> [Item] | []