From: Evan Prodromou Date: Thu, 28 Apr 2011 22:30:23 +0000 (-0700) Subject: Check for unavailable site nicknames in DomainStatusNetwork X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=ddead1e611034ccf45e4b249bb4f5457fd573cba;p=quix0rs-gnu-social.git Check for unavailable site nicknames in DomainStatusNetwork --- diff --git a/plugins/DomainStatusNetwork/DomainStatusNetworkPlugin.php b/plugins/DomainStatusNetwork/DomainStatusNetworkPlugin.php index aa7929ef02..5debb5ef76 100644 --- a/plugins/DomainStatusNetwork/DomainStatusNetworkPlugin.php +++ b/plugins/DomainStatusNetwork/DomainStatusNetworkPlugin.php @@ -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)