]> git.mxchange.org Git - friendica.git/blobdiff - mod/_well_known.php
Improve Console/Config display for array values
[friendica.git] / mod / _well_known.php
index fb8df4861f8f68cf75bb91dbbcb3be2207568e4b..407fc756a931fef7cfe0a39adc79816def46b1b6 100644 (file)
@@ -52,7 +52,7 @@ function wk_social_relay()
                        $tags[$tag] = $tag;
                }
 
-               if (get_config('system', 'relay_user_tags')) {
+               if (Config::get('system', 'relay_user_tags')) {
                        $terms = q("SELECT DISTINCT(`term`) FROM `search`");
 
                        foreach ($terms AS $term) {
@@ -73,8 +73,8 @@ function wk_social_relay()
                'subscribe' => $subscribe,
                'scope' => $scope,
                'tags' => $taglist,
-               'protocols' => ['diaspora' => System::baseUrl() . '/receive/public',
-                       'dfrn' => System::baseUrl() . '/dfrn_notify']
+               'protocols' => ['diaspora' => ['receive' => System::baseUrl() . '/receive/public'],
+                       'dfrn' => ['receive' => System::baseUrl() . '/dfrn_notify']]
        ];
 
        header('Content-type: application/json; charset=utf-8');