forked from GNUsocial/gnu-social
static definition of User::getByNickname
This commit is contained in:
parent
50c297bcbe
commit
f8877e015b
@ -147,7 +147,7 @@ class User extends Managed_DataObject
|
||||
return $this->getProfile()->getNickname();
|
||||
}
|
||||
|
||||
public function getByNickname($nickname)
|
||||
static function getByNickname($nickname)
|
||||
{
|
||||
$user = User::getKV('nickname', $nickname);
|
||||
if (!$user instanceof User) {
|
||||
|
Loading…
Reference in New Issue
Block a user