Merge pull request #7874 from annando/mail-post
Only transfer posts via mail
This commit is contained in:
commit
dba41da7e4
|
@ -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'])) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user