Skip to content

Commit

Permalink
filter out private posts before limiting the number of results
Browse files Browse the repository at this point in the history
  • Loading branch information
Timotheus Pokorra committed Jan 2, 2018
1 parent fe56f57 commit 63be8b7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Api/Controller/ListPostsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,8 @@ private function applyFilters(Builder $query, array $filter)
$query->where('type', $type);
}

$query->where('is_private', false);

event(new ConfigurePostsQuery($query, $filter));
}
}

0 comments on commit 63be8b7

Please sign in to comment.