src/Post/PostRepository.php
public function filterVisibleIds(array $ids, User $actor)
    {
        return $this->queryIds($ids, $actor)->pluck('posts.id')->all();
    }
public function filterVisibleIds(array $ids, User $actor)
    {
        return $this->queryIds($ids, $actor)->pluck('posts.id')->all();
    }
public function filterVisibleIds ( array $ ids , User $ actor ) { return $ this -> queryIds ( $ ids , $ actor ) -> pluck ( 'posts.id' ) -> all ( ) ; }
Filter a list of post IDs to only include posts that are visible to a
certain user.

@param array $ids
@param User $actor
@return array
Filter a list of post IDs to only include posts that are visible to a certain user .