]> git.mxchange.org Git - friendica.git/commitdiff
The value has to be assigned, not compared :-)
authorMichael <heluecht@pirati.ca>
Sat, 11 Jan 2020 18:28:04 +0000 (18:28 +0000)
committerMichael <heluecht@pirati.ca>
Sat, 11 Jan 2020 18:28:04 +0000 (18:28 +0000)
src/Worker/Notifier.php

index f4caf0eb9e773169f168ebea0ea6c53b827041bc..eed573e2aa91eb9fc353988d551110eaae81e4e0 100644 (file)
@@ -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']])) {