mirror of
https://github.com/processone/ejabberd
synced 2025-10-03 01:39:35 +02:00
Replace hardcoded disco features with macros
This commit is contained in:
parent
dce4e4de6d
commit
a463f5a25a
2 changed files with 2 additions and 2 deletions
|
@ -25,7 +25,7 @@
|
|||
{fast_tls, ".*", {git, "https://github.com/processone/fast_tls", {tag, "1.0.23"}}},
|
||||
{stringprep, ".*", {git, "https://github.com/processone/stringprep", {tag, "1.0.12"}}},
|
||||
{fast_xml, ".*", {git, "https://github.com/processone/fast_xml", {tag, "1.1.32"}}},
|
||||
{xmpp, ".*", {git, "https://github.com/processone/xmpp", {tag, "1.2.2"}}},
|
||||
{xmpp, ".*", {git, "https://github.com/processone/xmpp", "0e2ef5d"}},
|
||||
{fast_yaml, ".*", {git, "https://github.com/processone/fast_yaml", {tag, "1.0.15"}}},
|
||||
{jiffy, ".*", {git, "https://github.com/davisp/jiffy", {tag, "0.14.8"}}},
|
||||
{p1_oauth2, ".*", {git, "https://github.com/processone/p1_oauth2", {tag, "0.6.3"}}},
|
||||
|
|
|
@ -196,7 +196,7 @@ get_local_features(Acc, _From, To, <<"">>, _Lang) ->
|
|||
end,
|
||||
{result, lists:usort(
|
||||
lists:flatten(
|
||||
[<<"iq">>, <<"presence">>,
|
||||
[?NS_FEATURE_IQ, ?NS_FEATURE_PRESENCE,
|
||||
?NS_DISCO_INFO, ?NS_DISCO_ITEMS, Feats,
|
||||
ejabberd_local:get_features(To#jid.lserver)]))};
|
||||
get_local_features(Acc, _From, _To, _Node, Lang) ->
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue