From: Michael Date: Thu, 22 Nov 2018 22:23:31 +0000 (+0000) Subject: Block AP delivery X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=2f7b138b0936354792b1844f0ece2815612c970e;p=friendica.git Block AP delivery --- diff --git a/src/Protocol/ActivityPub/Transmitter.php b/src/Protocol/ActivityPub/Transmitter.php index 64b98e17e7..c0640480eb 100644 --- a/src/Protocol/ActivityPub/Transmitter.php +++ b/src/Protocol/ActivityPub/Transmitter.php @@ -27,6 +27,7 @@ use Friendica\Protocol\ActivityPub; use Friendica\Protocol\Diaspora; use Friendica\Core\Cache; use Friendica\Util\Map; +use Friendica\Util\Network; require_once 'include/api.php'; @@ -446,6 +447,10 @@ class Transmitter $contacts = DBA::select('contact', ['url'], $condition); while ($contact = DBA::fetch($contacts)) { + if (Network::isUrlBlocked($contact['url'])) { + continue; + } + $profile = APContact::getByURL($contact['url'], false); if (!empty($profile)) { if (empty($profile['sharedinbox']) || $personal) {