We are no longer offering accounts on this server. Consider https://gitlab.freedesktop.org/ as a place to host projects.

Commit ddead1e6 authored by Evan Prodromou's avatar Evan Prodromou

Check for unavailable site nicknames in DomainStatusNetwork

parent 7ed3b9cf
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment