search: replace calls to PostQueryBuilder#fast_count with PostQuery#fast_count.

Prepare a few more places for the new tag search parser.
This commit is contained in:
evazion
2022-03-30 01:35:48 -05:00
parent 8c9e045a9c
commit 6edff247f2
5 changed files with 12 additions and 8 deletions

View File

@@ -70,7 +70,7 @@ class UserPresenter
end
def commented_posts_count(template)
count = PostQueryBuilder.new("commenter:#{user.name}").fast_count
count = PostQuery.new("commenter:#{user.name}").fast_count
count = "?" if count.nil?
template.link_to(count, template.posts_path(tags: "commenter:#{user.name} order:comment_bumped"), rel: "nofollow")
end
@@ -84,7 +84,7 @@ class UserPresenter
end
def noted_posts_count(template)
count = PostQueryBuilder.new("noteupdater:#{user.name}").fast_count
count = PostQuery.new("noteupdater:#{user.name}").fast_count
count = "?" if count.nil?
template.link_to(count, template.posts_path(tags: "noteupdater:#{user.name} order:note"), rel: "nofollow")
end