forked from GNUsocial/gnu-social
Check for unavailable site nicknames in DomainStatusNetwork
This commit is contained in:
parent
7ed3b9cf3f
commit
ddead1e611
@ -128,7 +128,14 @@ class DomainStatusNetworkPlugin extends Plugin
|
||||
static function nicknameAvailable($nickname)
|
||||
{
|
||||
$sn = Status_network::staticGet('nickname', $nickname);
|
||||
return empty($sn);
|
||||
if (!empty($sn)) {
|
||||
return false;
|
||||
}
|
||||
$usn = Unavailable_status_network::staticGet('nickname', $nickname);
|
||||
if (!empty($usn)) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
static function nicknameForDomain($domain)
|
||||
|
Loading…
Reference in New Issue
Block a user