mirror of
https://github.com/processone/ejabberd.git
synced 2024-12-22 17:28:25 +01:00
Remove items of unregistered user (#2129)
This commit is contained in:
parent
96c183c04b
commit
0bda169a5a
@ -685,12 +685,17 @@ remove_user(User, Server) ->
|
||||
({#pubsub_node{nodeid = {H, N}, type = Type}, owner})
|
||||
when N == HomeTreeBase, Type == <<"hometree">> ->
|
||||
delete_node(H, N, Entity);
|
||||
({#pubsub_node{id = Nidx}, publisher}) ->
|
||||
({#pubsub_node{id = Nidx}, _}) ->
|
||||
{result, State} = node_action(Host, PType,
|
||||
get_state,
|
||||
[Nidx, jid:tolower(Entity)]),
|
||||
ItemIds = State#pubsub_state.items,
|
||||
node_action(Host, PType,
|
||||
set_affiliation,
|
||||
[Nidx, Entity, none]);
|
||||
(_) ->
|
||||
ok
|
||||
remove_extra_items,
|
||||
[Nidx, 0, ItemIds]),
|
||||
node_action(Host, PType,
|
||||
set_affiliation,
|
||||
[Nidx, Entity, none])
|
||||
end,
|
||||
Affs)
|
||||
end,
|
||||
|
Loading…
Reference in New Issue
Block a user