search: support negated wildcards in post searches.
* Support negated wildcards in searches (e.g. "holding -holding_*") * Raise wildcard limit to matching 25 tags regardless of user level. * Fix wildcards potentially matching empty tags. * Fix wildcard tags being sorted by post count only, and therefore not having a stable ordering when tags have equal post counts. * Fix sidebar to calculate wildcards tags the same way the search does.
This commit is contained in:
@@ -48,7 +48,7 @@ module PostSetPresenters
|
||||
end
|
||||
|
||||
def pattern_tags
|
||||
Tag.name_matches(post_set.tag_string).order(post_count: :desc).limit(MAX_TAGS).pluck(:name)
|
||||
Tag.wildcard_matches(post_set.tag_string)
|
||||
end
|
||||
|
||||
def saved_search_tags
|
||||
|
||||
Reference in New Issue
Block a user