]> git.mxchange.org Git - friendica.git/commitdiff
Add server block provision to Diaspora::postAllow
authorHypolite Petovan <hypolite@mrpetovan.com>
Sat, 9 Mar 2019 03:40:08 +0000 (22:40 -0500)
committerHypolite Petovan <hypolite@mrpetovan.com>
Sat, 9 Mar 2019 03:40:08 +0000 (22:40 -0500)
src/Protocol/Diaspora.php

index ca66aa0a67d73e820999fe21f5809952f2043304..12f4115384e938bb9c01ff8cd9f770136db15074 100644 (file)
@@ -1135,8 +1135,11 @@ class Diaspora
                //      Logger::log("defining user ".$contact["nick"]." as friend");
                //}
 
-               // We don't seem to like that person
-               if ($contact["blocked"]) {
+               // Contact server is blocked
+               if (Network::isUrlBlocked($contact['url'])) {
+                       return false;
+                       // We don't seem to like that person
+               } elseif ($contact["blocked"]) {
                        // Maybe blocked, don't accept.
                        return false;
                        // We are following this person?