mirror of
https://github.com/discourse/discourse.git
synced 2025-06-05 11:14:45 +08:00
UX: remove in:unpinned
filter from advanced search page. (#9911)
This commit is contained in:
@ -354,14 +354,6 @@ class Search
|
||||
posts.where("topics.pinned_at IS NOT NULL")
|
||||
end
|
||||
|
||||
advanced_filter(/^in:unpinned$/) do |posts|
|
||||
if @guardian.user
|
||||
posts.where("topics.pinned_at IS NOT NULL AND topics.id IN (
|
||||
SELECT topic_id FROM topic_users WHERE user_id = ? AND cleared_pinned_at IS NOT NULL
|
||||
)", @guardian.user.id)
|
||||
end
|
||||
end
|
||||
|
||||
advanced_filter(/^in:wiki$/) do |posts, match|
|
||||
posts.where(wiki: true)
|
||||
end
|
||||
|
Reference in New Issue
Block a user