mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FEATURE: in:first for searching first post
This commit is contained in:
@@ -179,6 +179,9 @@ class Search
|
||||
posts.where("topics.posts_count = ?", match.to_i)
|
||||
end
|
||||
|
||||
advanced_filter(/in:first/) do |posts|
|
||||
posts.where("posts.post_number = 1")
|
||||
end
|
||||
|
||||
advanced_filter(/in:(likes|bookmarks)/) do |posts, match|
|
||||
if @guardian.user
|
||||
|
||||
Reference in New Issue
Block a user