$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
$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) {
'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');