Merge pull request #7874 from annando/mail-post

Only transfer posts via mail
This commit is contained in:
Tobias Diekershoff 2019-11-28 16:30:31 +01:00 committed by GitHub
commit dba41da7e4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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;
@ -500,6 +501,10 @@ class Delivery extends BaseObject
return;
}
if ($target_item['verb'] != Activity::POST) {
return;
}
if (!empty($thr_parent['object'])) {
$data = json_decode($thr_parent['object'], true);
if (!empty($data['reply_to'])) {