search: move misc search parsing helpers to PostQueryBuilder.

* Move various search parser helper methods (`has_metatag?`,
  `is_single_tag?` et al) from PostSets and the Tag model to
  PostQueryBuilder.

* Fix various minor bugs stemming from trying to check if a search query
  contains certain metatags using regexes or other adhoc techniques.
This commit is contained in:
evazion
2020-04-23 01:51:30 -05:00
parent 3dab648d0e
commit dd0d9dff4a
15 changed files with 114 additions and 147 deletions

View File

@@ -19,7 +19,7 @@
<%= render "posts/partials/index/options" %>
<%= render "posts/partials/index/related" %>
<%= render "posts/partials/index/related", post_set: @post_set %>
<% end %>
<% content_for(:content) do %>