Only transfer posts via mail

This commit is contained in:
Michael 2019-11-27 21:59:11 +00:00
parent faa63632bf
commit a6a79d9c7e

View File

@ -15,6 +15,7 @@ use Friendica\Model;
use Friendica\Protocol\DFRN; use Friendica\Protocol\DFRN;
use Friendica\Protocol\Diaspora; use Friendica\Protocol\Diaspora;
use Friendica\Protocol\Email; use Friendica\Protocol\Email;
use Friendica\Protocol\Activity;
use Friendica\Util\Strings; use Friendica\Util\Strings;
use Friendica\Util\Network; use Friendica\Util\Network;
use Friendica\Core\Worker; use Friendica\Core\Worker;
@ -499,6 +500,10 @@ class Delivery extends BaseObject
if (!in_array($cmd, [self::POST, self::POKE])) { if (!in_array($cmd, [self::POST, self::POKE])) {
return; return;
} }
Logger::info('Blubb', $target_item);
if ($target_item['verb'] != Activity::POST) {
return;
}
if (!empty($thr_parent['object'])) { if (!empty($thr_parent['object'])) {
$data = json_decode($thr_parent['object'], true); $data = json_decode($thr_parent['object'], true);