]> git.mxchange.org Git - friendica.git/commitdiff
Merge pull request #6457 from annando/onepoll-bug
authorTobias Diekershoff <tobias.diekershoff@gmx.net>
Thu, 17 Jan 2019 06:42:45 +0000 (07:42 +0100)
committerGitHub <noreply@github.com>
Thu, 17 Jan 2019 06:42:45 +0000 (07:42 +0100)
The "]" had been at the wrong place

src/Worker/OnePoll.php

index 86da2791c2e9ccc715891bb5880d36e29a94d8cf..4cfcf1037e34a35411f4317614350a1978b17e67 100644 (file)
@@ -106,7 +106,7 @@ class OnePoll
                if (in_array($contact['network'], [Protocol::ACTIVITYPUB, Protocol::OSTATUS, Protocol::DIASPORA, Protocol::DFRN])) {
                        $updated = DateTimeFormat::utcNow();
                        // Currently we can't check every AP implementation, so we don't do it at all
-                       if (($contact['network' != Protocol::ACTIVITYPUB]) && !PortableContact::reachable($contact['url'])) {
+                       if (($contact['network'] != Protocol::ACTIVITYPUB) && !PortableContact::reachable($contact['url'])) {
                                Logger::log("Skipping probably dead contact ".$contact['url']);
 
                                // set the last-update so we don't keep polling