1
0
Fork 0
mirror of https://github.com/processone/ejabberd synced 2025-10-03 09:49:18 +02:00

Replace hardcoded disco features with macros

This commit is contained in:
Evgeniy Khramtsov 2018-06-29 14:48:07 +03:00
parent dce4e4de6d
commit a463f5a25a
2 changed files with 2 additions and 2 deletions

View file

@ -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"}}},

View file

@ -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) ->