]> granicus.if.org Git - ejabberd/commitdiff
Replace hardcoded disco features with macros
authorEvgeniy Khramtsov <ekhramtsov@process-one.net>
Fri, 29 Jun 2018 11:48:07 +0000 (14:48 +0300)
committerEvgeniy Khramtsov <ekhramtsov@process-one.net>
Fri, 29 Jun 2018 11:48:07 +0000 (14:48 +0300)
rebar.config
src/mod_disco.erl

index 7a25edda6839f1b784ec7c8122b1a0862e90b2df..0d5e0403118a65228d6d6c0a548a7e1b7780201f 100644 (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"}}},
index 08299ae2d04a2141e35e6a6c6ee07ee46a03c95d..3b394b8ddbbf6ff33ef74d412a70cf09882b2071 100644 (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) ->