mirror of
https://github.com/friendica/friendica
synced 2025-04-28 15:44:24 +02:00
Last refactoring :-) / refactor due feedback
This commit is contained in:
parent
0345c50e2d
commit
2ae4b9f7e9
7 changed files with 243 additions and 234 deletions
|
@ -29,7 +29,7 @@ class XSocialRelay extends BaseModule
|
|||
|
||||
if ($scope == SR_SCOPE_TAGS) {
|
||||
$server_tags = $config->get('system', 'relay_server_tags');
|
||||
$tagitems = explode(",", $server_tags);
|
||||
$tagitems = explode(',', $server_tags);
|
||||
|
||||
/// @todo Check if it was better to use "strtolower" on the tags
|
||||
foreach ($tagitems AS $tag) {
|
||||
|
@ -47,10 +47,14 @@ class XSocialRelay extends BaseModule
|
|||
'subscribe' => $subscribe,
|
||||
'scope' => $scope,
|
||||
'tags' => $tagList,
|
||||
'protocols' => ['diaspora' =>
|
||||
['receive' => $app->getBaseURL() . '/receive/public'],
|
||||
'dfrn' =>
|
||||
['receive' => $app->getBaseURL() . '/dfrn_notify']]
|
||||
'protocols' => [
|
||||
'diaspora' => [
|
||||
'receive' => $app->getBaseURL() . '/receive/public'
|
||||
],
|
||||
'dfrn' => [
|
||||
'receive' => $app->getBaseURL() . '/dfrn_notify'
|
||||
]
|
||||
]
|
||||
];
|
||||
|
||||
header('Content-type: application/json; charset=utf-8');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue