mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-20 16:15:59 +01:00
fix empty itemid on publish when passing Access
This commit is contained in:
parent
4221d56c04
commit
0c60718bef
@ -2938,10 +2938,10 @@ unsubscribe_node(Host, Node, From, Subscriber, SubId) ->
|
||||
%%%
|
||||
| {error, xmlel()}
|
||||
).
|
||||
publish_item(Host, ServerHost, Node, Publisher, <<>>, Payload) ->
|
||||
publish_item(Host, ServerHost, Node, Publisher, uniqid(), Payload, all);
|
||||
publish_item(Host, ServerHost, Node, Publisher, ItemId, Payload) ->
|
||||
publish_item(Host, ServerHost, Node, Publisher, ItemId, Payload, all).
|
||||
publish_item(Host, ServerHost, Node, Publisher, <<>>, Payload, Access) ->
|
||||
publish_item(Host, ServerHost, Node, Publisher, uniqid(), Payload, Access);
|
||||
publish_item(Host, ServerHost, Node, Publisher, ItemId, Payload, Access) ->
|
||||
Action = fun (#pubsub_node{options = Options, type = Type, id = NodeId}) ->
|
||||
Features = features(Type),
|
||||
|
@ -2600,10 +2600,10 @@ unsubscribe_node(Host, Node, From, Subscriber, SubId) ->
|
||||
%%%
|
||||
| {error, xmlel()}
|
||||
).
|
||||
publish_item(Host, ServerHost, Node, Publisher, <<>>, Payload) ->
|
||||
publish_item(Host, ServerHost, Node, Publisher, uniqid(), Payload, all);
|
||||
publish_item(Host, ServerHost, Node, Publisher, ItemId, Payload) ->
|
||||
publish_item(Host, ServerHost, Node, Publisher, ItemId, Payload, all).
|
||||
publish_item(Host, ServerHost, Node, Publisher, <<>>, Payload, Access) ->
|
||||
publish_item(Host, ServerHost, Node, Publisher, uniqid(), Payload, Access);
|
||||
publish_item(Host, ServerHost, Node, Publisher, ItemId, Payload, Access) ->
|
||||
Action = fun (#pubsub_node{options = Options, type = Type, id = NodeId}) ->
|
||||
Features = features(Type),
|
||||
|
Loading…
Reference in New Issue
Block a user