mirror of
https://github.com/processone/ejabberd.git
synced 2024-12-22 17:28:25 +01:00
fix get_entity_subscriptions result match
SVN Revision: 2375
This commit is contained in:
parent
367365f816
commit
46304da5d7
@ -458,7 +458,7 @@ send_loop(State) ->
|
|||||||
lists:foreach(fun(PType) ->
|
lists:foreach(fun(PType) ->
|
||||||
{result, Subscriptions} = node_action(Host, PType, get_entity_subscriptions, [Host, JID]),
|
{result, Subscriptions} = node_action(Host, PType, get_entity_subscriptions, [Host, JID]),
|
||||||
lists:foreach(
|
lists:foreach(
|
||||||
fun({Node, subscribed, SubJID}) ->
|
fun({Node, subscribed, _, SubJID}) ->
|
||||||
if (SubJID == LJID) or (SubJID == BJID) ->
|
if (SubJID == LJID) or (SubJID == BJID) ->
|
||||||
#pubsub_node{options = Options, type = Type, id = NodeId} = Node,
|
#pubsub_node{options = Options, type = Type, id = NodeId} = Node,
|
||||||
case get_option(Options, send_last_published_item) of
|
case get_option(Options, send_last_published_item) of
|
||||||
@ -767,7 +767,7 @@ handle_cast({remove_user, LUser, LServer}, State) ->
|
|||||||
lists:foreach(fun(PType) ->
|
lists:foreach(fun(PType) ->
|
||||||
{result, Subscriptions} = node_action(Host, PType, get_entity_subscriptions, [Host, Owner]),
|
{result, Subscriptions} = node_action(Host, PType, get_entity_subscriptions, [Host, Owner]),
|
||||||
lists:foreach(fun
|
lists:foreach(fun
|
||||||
({#pubsub_node{nodeid = {H, N}}, subscribed, JID}) ->
|
({#pubsub_node{nodeid = {H, N}}, subscribed, _, JID}) ->
|
||||||
unsubscribe_node(H, N, Owner, JID, all);
|
unsubscribe_node(H, N, Owner, JID, all);
|
||||||
(_) ->
|
(_) ->
|
||||||
ok
|
ok
|
||||||
@ -788,7 +788,7 @@ handle_cast({unsubscribe, Subscriber, Owner}, State) ->
|
|||||||
lists:foreach(fun(PType) ->
|
lists:foreach(fun(PType) ->
|
||||||
{result, Subscriptions} = node_action(Host, PType, get_entity_subscriptions, [Host, Subscriber]),
|
{result, Subscriptions} = node_action(Host, PType, get_entity_subscriptions, [Host, Subscriber]),
|
||||||
lists:foreach(fun
|
lists:foreach(fun
|
||||||
({Node, subscribed, JID}) ->
|
({Node, subscribed, _, JID}) ->
|
||||||
#pubsub_node{options = Options, owners = Owners, type = Type, id = NodeId} = Node,
|
#pubsub_node{options = Options, owners = Owners, type = Type, id = NodeId} = Node,
|
||||||
case get_option(Options, access_model) of
|
case get_option(Options, access_model) of
|
||||||
presence ->
|
presence ->
|
||||||
|
Loading…
Reference in New Issue
Block a user