Skip to content

Commit

Permalink
Fix recent list
Browse files Browse the repository at this point in the history
  • Loading branch information
samwilson committed Mar 3, 2021
1 parent 35a578b commit 1772290
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/Repository/PostRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,6 @@ public function recent(int $limit = 10, ?User $user = null): array
{
$groupList = $user ? $user->getGroupIdList() : UserGroup::PUBLIC;
return $this->createQueryBuilder('p')
->leftJoin('p.tags', 't')
->where("p.view_group IN ($groupList)")
->orderBy('p.date', 'DESC')
->setMaxResults($limit)
Expand Down

0 comments on commit 1772290

Please sign in to comment.