From ba1e385f86405d7e86f85fa166c374829bf440b5 Mon Sep 17 00:00:00 2001 From: Michael Date: Thu, 22 Nov 2018 22:09:22 +0000 Subject: [PATCH] Don't deliver to blocked domains --- src/Worker/Delivery.php | 5 +++++ 1 file changed, 5 insertions(+) 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)) { -- 2.39.5