From 28c54242a5967cb3fe65f822f2ec699f2d554616 Mon Sep 17 00:00:00 2001 From: Michael Date: Sat, 11 Jan 2020 18:28:04 +0000 Subject: [PATCH] The value has to be assigned, not compared :-) --- src/Worker/Notifier.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Worker/Notifier.php b/src/Worker/Notifier.php index f4caf0eb9e..eed573e2aa 100644 --- a/src/Worker/Notifier.php +++ b/src/Worker/Notifier.php @@ -446,7 +446,7 @@ class Notifier foreach ($r as $rr) { // Ensure that local contacts are delivered via DFRN if (Contact::isLocal($rr['url'])) { - $contact['network'] == Protocol::DFRN; + $contact['network'] = Protocol::DFRN; } if (!empty($rr['addr']) && ($rr['network'] == Protocol::ACTIVITYPUB) && !DBA::exists('fcontact', ['addr' => $rr['addr']])) { @@ -496,7 +496,7 @@ class Notifier while ($contact = DBA::fetch($delivery_contacts_stmt)) { // Ensure that local contacts are delivered via DFRN if (Contact::isLocal($contact['url'])) { - $contact['network'] == Protocol::DFRN; + $contact['network'] = Protocol::DFRN; } if (!empty($contact['addr']) && ($contact['network'] == Protocol::ACTIVITYPUB) && !DBA::exists('fcontact', ['addr' => $contact['addr']])) {