mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-20 16:15:59 +01:00
add node attribute to pubsub subscribe event (EJAB-1361)
This commit is contained in:
parent
ddc94a8c96
commit
79648ce853
@ -1927,9 +1927,11 @@ subscribe_node(Host, Node, From, JID, Configuration) ->
|
||||
SubAttrs = case Subscription of
|
||||
{subscribed, SubId} ->
|
||||
[{"subscription", subscription_to_string(subscribed)},
|
||||
{"subid", SubId}];
|
||||
{"subid", SubId},
|
||||
{"node",Node}];
|
||||
Other ->
|
||||
[{"subscription", subscription_to_string(Other)}]
|
||||
[{"subscription", subscription_to_string(Other)},
|
||||
{"node", Node}]
|
||||
end,
|
||||
Fields =
|
||||
[{"jid", jlib:jid_to_string(Subscriber)} | SubAttrs],
|
||||
|
Loading…
Reference in New Issue
Block a user