mirror of
https://github.com/flarum/core.git
synced 2025-10-14 16:34:26 +02:00
lists > pluck
This commit is contained in:
@@ -94,7 +94,7 @@ class UserRepository
|
||||
->orderByRaw('username = ? desc', [$string])
|
||||
->orderByRaw('username like ? desc', [$string.'%']);
|
||||
|
||||
return $this->scopeVisibleTo($query, $actor)->lists('id');
|
||||
return $this->scopeVisibleTo($query, $actor)->pluck('id')->all();
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user