]> git.mxchange.org Git - friendica.git/commitdiff
Only transfer posts via mail
authorMichael <heluecht@pirati.ca>
Wed, 27 Nov 2019 21:59:11 +0000 (21:59 +0000)
committerMichael <heluecht@pirati.ca>
Wed, 27 Nov 2019 21:59:11 +0000 (21:59 +0000)
src/Worker/Delivery.php

index c98c60f4263fbcbd5f3d93bb3f568fa626e4db16..97478ee18e4aef4b1c85487db744cc9d36ac1b34 100644 (file)
@@ -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);