Only transfer posts via mail

pull/7874/head
Michael 2019-11-27 21:59:11 +00:00
parent faa63632bf
commit a6a79d9c7e
1 changed files with 5 additions and 0 deletions

View 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);