mirror of
https://github.com/bjc/prosody.git
synced 2025-04-06 22:57:38 +03:00
PEP: Send publish IQ result before broadcast.
This commit is contained in:
parent
6a1146aeef
commit
8ca1f81738
1 changed files with 1 additions and 1 deletions
|
@ -134,8 +134,8 @@ module:hook("iq/bare/http://jabber.org/protocol/pubsub:pubsub", function(event)
|
||||||
local node = payload.attr.node;
|
local node = payload.attr.node;
|
||||||
payload = payload.tags[1];
|
payload = payload.tags[1];
|
||||||
if payload and payload.name == "item" then -- <item>
|
if payload and payload.name == "item" then -- <item>
|
||||||
publish(session, node, st.clone(payload));
|
|
||||||
session.send(st.reply(stanza));
|
session.send(st.reply(stanza));
|
||||||
|
publish(session, node, st.clone(payload));
|
||||||
return true;
|
return true;
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue