X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2F_well_known.php;h=407fc756a931fef7cfe0a39adc79816def46b1b6;hb=18fd86f51efc8c505393a5219c921204e18d0392;hp=4f247abef8fb937875773c5becb740fec45a024b;hpb=594f946ad68cc0ab8a9a18c6778298c9976318cd;p=friendica.git diff --git a/mod/_well_known.php b/mod/_well_known.php index 4f247abef8..407fc756a9 100644 --- a/mod/_well_known.php +++ b/mod/_well_known.php @@ -43,7 +43,7 @@ function wk_social_relay() $tags = []; if ($scope == SR_SCOPE_TAGS) { - $server_tags = get_config('system', 'relay_server_tags'); + $server_tags = Config::get('system', 'relay_server_tags'); $tagitems = explode(",", $server_tags); /// @todo Check if it was better to use "strtolower" on the tags @@ -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');