Automatically expand search suggestions if there is only one page of results

This commit is contained in:
blankie 2023-05-02 15:50:18 +07:00
parent 8d61ca4ee3
commit 48dbc8e978
Signed by: blankie
GPG Key ID: CC15FC822C7F61F5
1 changed files with 1 additions and 1 deletions

View File

@ -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"));