category: fix category search in explore

This is a change that replicates the fix done via PR #6093.
This is based over v5.1.1 as the fix seems necessary for
the category search to work properly on the explore screen.
This commit is contained in:
Kaartic Sivaraam 2025-01-15 12:32:50 +05:30
parent 391408ed17
commit a796a8adcf
2 changed files with 2 additions and 2 deletions

View file

@ -124,7 +124,7 @@ class CategoryClient
}.map { }.map {
it it
.filter { page -> .filter { page ->
!page.categoryInfo().isHidden page.categoryInfo() == null || !page.categoryInfo().isHidden
}.map { }.map {
CategoryItem( CategoryItem(
it.title().replace(CATEGORY_PREFIX, ""), it.title().replace(CATEGORY_PREFIX, ""),

View file

@ -36,7 +36,7 @@ public class MwQueryPage extends BaseModel {
return title; return title;
} }
@NonNull public CategoryInfo categoryInfo() { public CategoryInfo categoryInfo() {
return categoryinfo; return categoryinfo;
} }