Files
danbooru/app/logical/post_sets/base.rb
evazion 14da425564 search: reduce queries in single tag searches (#4120).
Avoid some queries used in wiki page excerpts:

* Only try to load the artist if the tag is an artist tag.
* Avoid using `exists?` queries for wiki pages.
* Bugfix: don't show wiki excerpts for deleted wikis.
2019-08-12 13:38:45 -05:00

40 lines
424 B
Ruby

module PostSets
class Base
def raw
false
end
def wiki_page
nil
end
def artist
nil
end
def is_single_tag?
false
end
def tag_string
nil
end
def unknown_post_count?
false
end
def use_sequential_paginator?
false
end
def best_post
nil
end
def presenter
raise NotImplementedError
end
end
end