spegling av
https://github.com/friendica/friendica
synced 2025-09-07 21:21:52 +02:00
Add server block provision to Diaspora::postAllow
This commit is contained in:
förälder
d40cbdce32
incheckning
704cb052ca
1 ändrade filer med 5 tillägg och 2 borttagningar
|
@ -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?
|
||||
|
|
Laddar…
Lägg till tabell
Lägg till en länk
Hänvisa till i nytt ärende