diff --git a/app/models/post.rb b/app/models/post.rb index 8c5746071..fc2f2afcd 100644 --- a/app/models/post.rb +++ b/app/models/post.rb @@ -609,7 +609,7 @@ class Post < ActiveRecord::Base else count = get_count_from_cache(tags) - if count.nil? || count == 0 + if count.to_i == 0 count = fast_count_search(tags) end end diff --git a/app/views/forum_topics/index.html.erb b/app/views/forum_topics/index.html.erb index 4509a8dfd..45e2fddd1 100644 --- a/app/views/forum_topics/index.html.erb +++ b/app/views/forum_topics/index.html.erb @@ -26,7 +26,7 @@ <%= link_to topic.title, forum_topic_path(topic) %> <% if topic.response_count > Danbooru.config.posts_per_page %> - <%= link_to "last", forum_topic_path(topic, :page => topic.last_page), :class => "last-page" %> + <%= link_to "pg #{topic.last_page}", forum_topic_path(topic, :page => topic.last_page), :class => "last-page" %> <% end %> <% if topic.is_locked? %>