Add server block provision to Diaspora::postAllow
This commit is contained in:
parent
d40cbdce32
commit
704cb052ca
|
@ -1135,8 +1135,11 @@ class Diaspora
|
||||||
// Logger::log("defining user ".$contact["nick"]." as friend");
|
// Logger::log("defining user ".$contact["nick"]." as friend");
|
||||||
//}
|
//}
|
||||||
|
|
||||||
// We don't seem to like that person
|
// Contact server is blocked
|
||||||
if ($contact["blocked"]) {
|
if (Network::isUrlBlocked($contact['url'])) {
|
||||||
|
return false;
|
||||||
|
// We don't seem to like that person
|
||||||
|
} elseif ($contact["blocked"]) {
|
||||||
// Maybe blocked, don't accept.
|
// Maybe blocked, don't accept.
|
||||||
return false;
|
return false;
|
||||||
// We are following this person?
|
// We are following this person?
|
||||||
|
|
Loading…
Reference in a new issue