Fix unnecessary artist queries for multi-tag searches
This commit is contained in:
@@ -31,7 +31,7 @@ module PostSets
|
|||||||
end
|
end
|
||||||
|
|
||||||
def has_artist?
|
def has_artist?
|
||||||
tag_array.any? && ::Artist.named(tag_string).active.exists?
|
is_single_tag? && ::Artist.named(tag_string).active.exists?
|
||||||
end
|
end
|
||||||
|
|
||||||
def artist
|
def artist
|
||||||
@@ -43,7 +43,7 @@ module PostSets
|
|||||||
end
|
end
|
||||||
|
|
||||||
def has_pool?
|
def has_pool?
|
||||||
tag_array.size == 1 && pool_name && pool
|
is_single_tag? && pool_name && pool
|
||||||
end
|
end
|
||||||
|
|
||||||
def pool
|
def pool
|
||||||
|
|||||||
Reference in New Issue
Block a user