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
commit ca845b3204
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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