mirror of
https://github.com/flarum/core.git
synced 2025-10-16 17:27:05 +02:00
lists > pluck
This commit is contained in:
@@ -70,7 +70,7 @@ class PostRepository
|
||||
$query->orderBy($field, $order);
|
||||
}
|
||||
|
||||
$ids = $query->lists('id')->all();
|
||||
$ids = $query->pluck('id')->all();
|
||||
|
||||
return $this->findByIds($ids, $actor);
|
||||
}
|
||||
@@ -111,7 +111,7 @@ class PostRepository
|
||||
*/
|
||||
public function filterVisibleIds(array $ids, User $actor)
|
||||
{
|
||||
return $this->queryIds($ids, $actor)->lists('id')->all();
|
||||
return $this->queryIds($ids, $actor)->pluck('id')->all();
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user