mirror of
https://github.com/friendica/friendica
synced 2025-04-29 03:04:22 +02:00
Fix mail delivery via AP when the contact is hidden
This commit is contained in:
parent
d3e12c58e2
commit
d8da580869
2 changed files with 16 additions and 9 deletions
|
@ -51,6 +51,8 @@ class Notifier
|
|||
|
||||
$delivery_contacts_stmt = null;
|
||||
$target_item = [];
|
||||
$parent = [];
|
||||
$thr_parent = [];
|
||||
$items = [];
|
||||
$delivery_queue_count = 0;
|
||||
|
||||
|
@ -594,6 +596,10 @@ class Notifier
|
|||
*/
|
||||
private static function skipDFRN($contact, $item, $parent, $thr_parent, $cmd)
|
||||
{
|
||||
if (empty($parent['network'])) {
|
||||
return false;
|
||||
}
|
||||
|
||||
// Don't skip when the starting post is delivered via Diaspora
|
||||
if ($parent['network'] == Protocol::DIASPORA) {
|
||||
return false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue