mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-20 16:15:59 +01:00
fix auto-create issue due to bad binary matching
This commit is contained in:
parent
62fb432e3e
commit
08fc6df853
@ -3036,7 +3036,7 @@ publish_item(Host, ServerHost, Node, Publisher, ItemId, Payload, Access) ->
|
|||||||
%% for automatic node creation. we'll take the default node type:
|
%% for automatic node creation. we'll take the default node type:
|
||||||
%% first listed into the plugins configuration option, or pep
|
%% first listed into the plugins configuration option, or pep
|
||||||
Type = select_type(ServerHost, Host, Node),
|
Type = select_type(ServerHost, Host, Node),
|
||||||
case lists:member("auto-create", features(Type)) of
|
case lists:member(<<"auto-create">>, features(Type)) of
|
||||||
true ->
|
true ->
|
||||||
case create_node(Host, ServerHost, Node, Publisher, Type, Access, []) of
|
case create_node(Host, ServerHost, Node, Publisher, Type, Access, []) of
|
||||||
{result, [#xmlel{name = <<"pubsub">>,
|
{result, [#xmlel{name = <<"pubsub">>,
|
||||||
|
Loading…
Reference in New Issue
Block a user