From 48dbc8e978394c723f825037ffc01371c2992977 Mon Sep 17 00:00:00 2001 From: blankie Date: Tue, 2 May 2023 15:50:18 +0700 Subject: [PATCH] Automatically expand search suggestions if there is only one page of results --- routes/tags.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routes/tags.cpp b/routes/tags.cpp index 5a51350..44fcf24 100644 --- a/routes/tags.cpp +++ b/routes/tags.cpp @@ -74,7 +74,7 @@ static inline Element generate_header(const httplib::Request& req, const Config& }) }); if (!search_suggestions.empty()) { - header.nodes.push_back(generate_search_suggestions(req, config, tags, search_suggestions, search_results.illusts.total_illusts == 0)); + header.nodes.push_back(generate_search_suggestions(req, config, tags, search_suggestions, search_results.illusts.total_pages <= 1)); } header.nodes.push_back(Element("br"));