]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Check for unavailable site nicknames in DomainStatusNetwork
authorEvan Prodromou <evan@status.net>
Thu, 28 Apr 2011 22:30:23 +0000 (15:30 -0700)
committerEvan Prodromou <evan@status.net>
Thu, 28 Apr 2011 22:30:23 +0000 (15:30 -0700)
plugins/DomainStatusNetwork/DomainStatusNetworkPlugin.php

index aa7929ef0247f5bbb98884aee29a409ebd37389b..5debb5ef76984b79498f01c79d67809c3cecbf66 100644 (file)
@@ -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)