forked from GNUsocial/gnu-social
Remove unnecessary Profile::pkeyGet
Thanks for the info, Evan.
This commit is contained in:
@@ -62,7 +62,7 @@ class AutocompleteAction extends Action
|
||||
$user->whereAdd('nickname like \'' . trim($user->escape($q), '\'') . '%\'');
|
||||
$user->find();
|
||||
while($user->fetch()) {
|
||||
$profile = Profile::pkeyGet(array('id' => $user->id));
|
||||
$profile = Profile::staticGet($user->id);
|
||||
$this->results[]=array('nickname' => $user->nickname, 'fullname'=> $profile->fullname, 'type'=>'user');
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user