mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-22 16:20:52 +01:00
fix remove_user not unsubscribing user (EJAB-684)
SVN Revision: 1659
This commit is contained in:
parent
a910c4baa1
commit
0083e56c22
@ -3,6 +3,9 @@
|
|||||||
* src/mod_pubsub/mod_pubsub.erl: fix badarg issue on get_roster_info
|
* src/mod_pubsub/mod_pubsub.erl: fix badarg issue on get_roster_info
|
||||||
when allowed roster groups is not defined
|
when allowed roster groups is not defined
|
||||||
|
|
||||||
|
* src/mod_pubsub/mod_pubsub.erl: fix remove_user not unsubscribing
|
||||||
|
user (EJAB-684)
|
||||||
|
|
||||||
2008-10-14 Christophe Romain <christophe.romain@process-one.net>
|
2008-10-14 Christophe Romain <christophe.romain@process-one.net>
|
||||||
|
|
||||||
* src/mod_pubsub/mod_pubsub.erl: fix pubsub_publish_item hook
|
* src/mod_pubsub/mod_pubsub.erl: fix pubsub_publish_item hook
|
||||||
|
@ -518,8 +518,9 @@ handle_cast({presence, JID, Pid}, State) ->
|
|||||||
end,
|
end,
|
||||||
{noreply, State};
|
{noreply, State};
|
||||||
|
|
||||||
handle_cast({remove_user, User, Host}, State) ->
|
handle_cast({remove_user, LUser, LServer}, State) ->
|
||||||
Owner = jlib:make_jid(User, Host, ""),
|
Host = State#state.host,
|
||||||
|
Owner = jlib:make_jid(LUser, LServer, ""),
|
||||||
OwnerKey = jlib:jid_tolower(jlib:jid_remove_resource(Owner)),
|
OwnerKey = jlib:jid_tolower(jlib:jid_remove_resource(Owner)),
|
||||||
%% remove user's subscriptions
|
%% remove user's subscriptions
|
||||||
lists:foreach(fun(Type) ->
|
lists:foreach(fun(Type) ->
|
||||||
@ -537,7 +538,7 @@ handle_cast({remove_user, User, Host}, State) ->
|
|||||||
delete_node(NodeKey, NodeName, Owner)
|
delete_node(NodeKey, NodeName, Owner)
|
||||||
end, tree_action(Host, get_nodes, [OwnerKey])),
|
end, tree_action(Host, get_nodes, [OwnerKey])),
|
||||||
%% remove user's nodes
|
%% remove user's nodes
|
||||||
delete_node(Host, ["home", Host, User], Owner),
|
delete_node(Host, ["home", LServer, LUser], Owner),
|
||||||
{noreply, State};
|
{noreply, State};
|
||||||
|
|
||||||
handle_cast(_Msg, State) ->
|
handle_cast(_Msg, State) ->
|
||||||
|
Loading…
Reference in New Issue
Block a user