X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FProtocol%2FRelay.php;h=f50b73b7d707de5c6a20bd3d7023d7582770700c;hb=3b19ccc3519b929b9ac6d79aca6b8b424597c9c2;hp=da9a2e3923484d62130a4eb60031a62d59814e37;hpb=e8becc153856debb927d7afac17bae5c80a0abb7;p=friendica.git diff --git a/src/Protocol/Relay.php b/src/Protocol/Relay.php index da9a2e3923..f50b73b7d7 100644 --- a/src/Protocol/Relay.php +++ b/src/Protocol/Relay.php @@ -1,6 +1,6 @@ get('system', 'relay_scope'); - if ($scope == SR_SCOPE_NONE) { + if ($scope == self::SCOPE_NONE) { Logger::info('Server does not accept relay posts - rejected', ['network' => $network, 'url' => $url]); return false; } @@ -74,7 +80,7 @@ class Relay $userTags = []; $denyTags = []; - if ($scope == SR_SCOPE_TAGS) { + if ($scope == self::SCOPE_TAGS) { $server_tags = $config->get('system', 'relay_server_tags'); $tagitems = explode(',', mb_strtolower($server_tags)); foreach ($tagitems as $tag) { @@ -119,7 +125,7 @@ class Relay } } - if ($scope == SR_SCOPE_ALL) { + if ($scope == self::SCOPE_ALL) { Logger::info('Server accept all posts - accepted', ['network' => $network, 'url' => $url]); return true; }