<?php
/**
- * @copyright Copyright (C) 2010-2021, the Friendica project
+ * @copyright Copyright (C) 2010-2022, the Friendica project
*
* @license GNU AGPL version 3 or any later version
*
use Friendica\BaseModule;
use Friendica\DI;
use Friendica\Model\Search;
+use Friendica\Protocol\Relay;
/**
* Node subscription preferences for social realy systems
*/
class XSocialRelay extends BaseModule
{
- public static function rawContent(array $parameters = [])
+ protected function rawContent(array $request = [])
{
$config = DI::config();
$systemTags = [];
$userTags = [];
- if ($scope == SR_SCOPE_TAGS) {
+ if ($scope == Relay::SCOPE_TAGS) {
$server_tags = $config->get('system', 'relay_server_tags');
$tagitems = explode(',', $server_tags);
$tagList = array_unique(array_merge($systemTags, $userTags));
$relay = [
- 'subscribe' => ($scope != SR_SCOPE_NONE),
+ 'subscribe' => ($scope != Relay::SCOPE_NONE),
'scope' => $scope,
'tags' => $tagList,
'protocols' => [