mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-26 16:26:24 +01:00
add node attribute to pubsub subscribe event (EJAB-1361)
This commit is contained in:
parent
a8bf889e79
commit
53cc032251
@ -2320,9 +2320,11 @@ subscribe_node(Host, Node, From, JID, Configuration) ->
|
|||||||
SubAttrs = case Subscription of
|
SubAttrs = case Subscription of
|
||||||
{subscribed, SubId} ->
|
{subscribed, SubId} ->
|
||||||
[?XMLATTR(<<"subscription">>, subscription_to_string(subscribed)),
|
[?XMLATTR(<<"subscription">>, subscription_to_string(subscribed)),
|
||||||
?XMLATTR(<<"subid">>, SubId)];
|
?XMLATTR(<<"subid">>, SubId),
|
||||||
|
?XMLATTR(<<"node">>, Node)];
|
||||||
Other ->
|
Other ->
|
||||||
[?XMLATTR(<<"subscription">>, subscription_to_string(Other))]
|
[?XMLATTR(<<"subscription">>, subscription_to_string(Other)),
|
||||||
|
?XMLATTR(<<"node">>, Node)]
|
||||||
end,
|
end,
|
||||||
Fields =
|
Fields =
|
||||||
[ ?XMLATTR(<<"jid">>, JID) | SubAttrs],
|
[ ?XMLATTR(<<"jid">>, JID) | SubAttrs],
|
||||||
|
Loading…
Reference in New Issue
Block a user