mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-28 16:34:13 +01:00
Only advertise conversion feature when mod_pubsub is loaded
This commit is contained in:
parent
d79ddd7b5c
commit
fcff3c60b1
@ -102,12 +102,17 @@ mod_options(Host) ->
|
|||||||
{error, stanza_error()} | empty | {result, [binary()]}.
|
{error, stanza_error()} | empty | {result, [binary()]}.
|
||||||
get_sm_features({error, _Error} = Acc, _From, _To, _Node, _Lang) ->
|
get_sm_features({error, _Error} = Acc, _From, _To, _Node, _Lang) ->
|
||||||
Acc;
|
Acc;
|
||||||
get_sm_features(Acc, _From, _To, <<"">>, _Lang) ->
|
get_sm_features(Acc, _From, To, <<"">>, _Lang) ->
|
||||||
{result, [?NS_BOOKMARKS_CONVERSION_0 |
|
case gen_mod:is_loaded(To#jid.lserver, mod_pubsub) of
|
||||||
case Acc of
|
true ->
|
||||||
{result, Features} -> Features;
|
{result, [?NS_BOOKMARKS_CONVERSION_0 |
|
||||||
empty -> []
|
case Acc of
|
||||||
end]};
|
{result, Features} -> Features;
|
||||||
|
empty -> []
|
||||||
|
end]};
|
||||||
|
false ->
|
||||||
|
Acc
|
||||||
|
end;
|
||||||
get_sm_features(Acc, _From, _To, _Node, _Lang) ->
|
get_sm_features(Acc, _From, _To, _Node, _Lang) ->
|
||||||
Acc.
|
Acc.
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user