mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 06:14:12 +08:00
DEV: Introduce TopicsFilter#filter_tags
method (#20839)
This change sets the ground work for allowing us to filter topics list by tags in the following ways: 1. Filter for topics that matches all tags in a given set of tags 2. Filter for topics that matches any tags in a given set of tags 3. Exclude topics that matches all tags in a given set of tags 4. Exclude topics that matches any tags in a given set of tags
This commit is contained in:

committed by
GitHub

parent
e0cf2849fd
commit
dd88fdeabc
@ -799,7 +799,7 @@ class TopicQuery
|
||||
scope: result,
|
||||
guardian: @guardian,
|
||||
category_id: options[:category],
|
||||
).filter(status: options[:status])
|
||||
).filter_status(status: options[:status])
|
||||
end
|
||||
|
||||
if (filter = (options[:filter] || options[:f])) && @user
|
||||
|
Reference in New Issue
Block a user