mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-28 16:34:13 +01:00
Fix node auto-creation
This commit is contained in:
parent
6b060649c6
commit
8ea41718ac
@ -3045,7 +3045,7 @@ publish_item(Host, ServerHost, Node, Publisher, ItemId, Payload, Access) ->
|
|||||||
[#xmlel{name = <<"create">>,
|
[#xmlel{name = <<"create">>,
|
||||||
attrs = [{<<"node">>, NewNode}],
|
attrs = [{<<"node">>, NewNode}],
|
||||||
children = []}]}]} ->
|
children = []}]}]} ->
|
||||||
publish_item(Host, ServerHost, list_to_binary(NewNode),
|
publish_item(Host, ServerHost, NewNode,
|
||||||
Publisher, ItemId, Payload);
|
Publisher, ItemId, Payload);
|
||||||
_ ->
|
_ ->
|
||||||
{error, ?ERR_ITEM_NOT_FOUND}
|
{error, ?ERR_ITEM_NOT_FOUND}
|
||||||
|
Loading…
Reference in New Issue
Block a user