Merge pull request #5379 from wallabag/fix-search-homepage

Fixed search on homepage
This commit is contained in:
Nicolas Lœuillet
2021-08-20 11:16:33 +02:00
committed by GitHub

View File

@ -88,7 +88,7 @@ class EntryRepository extends EntityRepository
if ('starred' === $currentRoute) { if ('starred' === $currentRoute) {
$qb->andWhere('e.isStarred = true'); $qb->andWhere('e.isStarred = true');
} elseif ('unread' === $currentRoute) { } elseif ('unread' === $currentRoute || 'homepage' === $currentRoute) {
$qb->andWhere('e.isArchived = false'); $qb->andWhere('e.isArchived = false');
} elseif ('archive' === $currentRoute) { } elseif ('archive' === $currentRoute) {
$qb->andWhere('e.isArchived = true'); $qb->andWhere('e.isArchived = true');