25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-22 16:20:52 +01:00

PEP notification bugfix

SVN Revision: 1085
This commit is contained in:
Christophe Romain 2007-12-20 16:38:38 +00:00
parent 027adc6c38
commit 583f2fd19f
2 changed files with 11 additions and 7 deletions

View File

@ -4,6 +4,8 @@
ejabberdctl usage example (EJAB-420)
* doc/guide.html: Likewise
* src/mod_pubsub/mod_pubsub.erl: PEP notification bugfix
2007-12-20 Badlop <badlop@process-one.net>
* src/msgs/zh.msg: Small update (thanks to Shelley Shyan)

View File

@ -2341,13 +2341,15 @@ broadcast_by_caps({LUser, LServer, LResource}, Node, _Type, Stanza) ->
_ ->
ok
end,
%% also send a notification to any
%% of the account owner's available resources.
%% See: XEP-0163 1.1 section 3
lists:foreach(fun(Resource) ->
To = jlib:make_jid(LUser, LServer, Resource),
ejabberd_router:route(Sender, To, Stanza)
end, SenderResources),
%% also send a notification to any
%% of the account owner's available resources.
%% See: XEP-0163 1.1 section 3
%% Note: ejabberd_c2s:get_subscribed_and_online already returns owner online resources
%% this loop should be deleted
% lists:foreach(fun(Resource) ->
% To = jlib:make_jid(LUser, LServer, Resource),
% ejabberd_router:route(Sender, To, Stanza)
% end, SenderResources),
ok;
_ ->
ok