From: Michael Date: Wed, 27 Nov 2019 21:59:11 +0000 (+0000) Subject: Only transfer posts via mail X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=a6a79d9c7e659af6899150538306e5c7a6bd2a57;p=friendica.git Only transfer posts via mail --- diff --git a/src/Worker/Delivery.php b/src/Worker/Delivery.php index c98c60f426..97478ee18e 100644 --- a/src/Worker/Delivery.php +++ b/src/Worker/Delivery.php @@ -15,6 +15,7 @@ use Friendica\Model; use Friendica\Protocol\DFRN; use Friendica\Protocol\Diaspora; use Friendica\Protocol\Email; +use Friendica\Protocol\Activity; use Friendica\Util\Strings; use Friendica\Util\Network; use Friendica\Core\Worker; @@ -499,6 +500,10 @@ class Delivery extends BaseObject if (!in_array($cmd, [self::POST, self::POKE])) { return; } +Logger::info('Blubb', $target_item); + if ($target_item['verb'] != Activity::POST) { + return; + } if (!empty($thr_parent['object'])) { $data = json_decode($thr_parent['object'], true);