From c4e1f5bf3d1b05adbb0a978518691b7768375760 Mon Sep 17 00:00:00 2001 From: evazion Date: Thu, 7 Apr 2022 00:41:52 -0500 Subject: [PATCH] posts: fix post search count logging. --- app/views/posts/index.html.erb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/views/posts/index.html.erb b/app/views/posts/index.html.erb index c46c39647..a10c992c9 100644 --- a/app/views/posts/index.html.erb +++ b/app/views/posts/index.html.erb @@ -213,11 +213,11 @@ <%= render "posts/partials/common/secondary_links" %> <% end %> -<% if reportbooru_enabled? && @post_set.query.is_simple_tag? && @post_set.current_page == 1 %> +<% if reportbooru_enabled? && @post_set.post_query.is_simple_tag? && @post_set.current_page == 1 %> <% if @post_set.post_count == 0 %> - <%= missed_post_search_count_js(@post_set.query.to_s) %> + <%= missed_post_search_count_js(@post_set.post_query.to_s) %> <% else %> - <%= post_search_count_js(@post_set.query.to_s) %> + <%= post_search_count_js(@post_set.post_query.to_s) %> <% end %> <% end %>