25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-24 16:23:40 +01:00

Fix node auto-creation

This commit is contained in:
Evgeniy Khramtsov 2013-06-18 04:11:54 +10:00
parent 6b060649c6
commit 8ea41718ac

View File

@ -3045,7 +3045,7 @@ publish_item(Host, ServerHost, Node, Publisher, ItemId, Payload, Access) ->
[#xmlel{name = <<"create">>,
attrs = [{<<"node">>, NewNode}],
children = []}]}]} ->
publish_item(Host, ServerHost, list_to_binary(NewNode),
publish_item(Host, ServerHost, NewNode,
Publisher, ItemId, Payload);
_ ->
{error, ?ERR_ITEM_NOT_FOUND}