Commit 05966c8b authored by Mario's avatar Mario

do not notify twice for diaspora private mails. we already notify in mail_store()

parent 3c8b5c1e
......@@ -1140,8 +1140,6 @@ class Diaspora_Receiver {
$sig = ''; // placeholder
// @fixme - use mail_store or mail_store_lowlevel
$x = mail_store( [
'account_id' => intval($this->importer['channel_account_id']),
'channel_id' => intval($this->importer['channel_id']),
......@@ -1168,14 +1166,6 @@ class Diaspora_Receiver {
intval($this->importer['channel_id'])
);
\Zotlabs\Lib\Enotify::submit(array(
'from_xchan' => $person['xchan_hash'],
'to_xchan' => $this->importer['channel_hash'],
'type' => NOTIFY_MAIL,
'item' => $z[0],
'verb' => ACTIVITY_POST,
'otype' => 'mail'
));
}
return;
......@@ -1307,15 +1297,6 @@ class Diaspora_Receiver {
intval($this->importer['channel_id'])
);
\Zotlabs\Lib\Enotify::submit(array(
'from_xchan' => $person['xchan_hash'],
'to_xchan' => $this->importer['channel_hash'],
'type' => NOTIFY_MAIL,
'item' => $z[0],
'verb' => ACTIVITY_POST,
'otype' => 'mail'
));
return;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment