]> git.mxchange.org Git - friendica.git/commitdiff
Block AP delivery
authorMichael <heluecht@pirati.ca>
Thu, 22 Nov 2018 22:23:31 +0000 (22:23 +0000)
committerMichael <heluecht@pirati.ca>
Thu, 22 Nov 2018 22:23:31 +0000 (22:23 +0000)
src/Protocol/ActivityPub/Transmitter.php

index 64b98e17e70038c5439dcdca9fda94056cf9c256..c0640480eb238062a9ebcd9ee2b688969d418b96 100644 (file)
@@ -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) {