autocomplete: replace calls to PostQueryBuilder with PostQuery.

This commit is contained in:
evazion
2022-03-30 01:50:58 -05:00
parent 6edff247f2
commit 04551b8154
3 changed files with 24 additions and 16 deletions

View File

@@ -4,7 +4,7 @@ class PostQuery
extend Memoist
attr_reader :search, :parser, :builder, :ast
delegate :tag_names, :metatags, to: :ast
delegate :tag?, :metatag?, :wildcard?, :metatags, :wildcards, :tag_names, :metatags, to: :ast
def initialize(search, current_user: User.anonymous, tag_limit: nil, safe_mode: false, hide_deleted_posts: false)
@search = search