From: Michael Date: Thu, 22 Nov 2018 22:09:22 +0000 (+0000) Subject: Don't deliver to blocked domains X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=ba1e385f86405d7e86f85fa166c374829bf440b5;p=friendica.git Don't deliver to blocked domains --- diff --git a/src/Worker/Delivery.php b/src/Worker/Delivery.php index 3ae0be140d..0d56bfa5d1 100644 --- a/src/Worker/Delivery.php +++ b/src/Worker/Delivery.php @@ -19,6 +19,7 @@ use Friendica\Protocol\DFRN; use Friendica\Protocol\Diaspora; use Friendica\Protocol\Email; use Friendica\Util\Strings; +use Friendica\Util\Network; require_once 'include/items.php'; @@ -158,6 +159,10 @@ class Delivery extends BaseObject return; } + if (Network::isUrlBlocked($contact['url'])) { + return; + } + // Transmit via Diaspora if the thread had started as Diaspora post // This is done since the uri wouldn't match (Diaspora doesn't transmit it) if (isset($parent) && ($parent['network'] == Protocol::DIASPORA) && ($contact['network'] == Protocol::DFRN)) {