Skip to content

Commit

Permalink
DEV: Drop support for deprecated in:private search filter.
Browse files Browse the repository at this point in the history
  • Loading branch information
tgxworld committed Aug 21, 2020
1 parent ab5d738 commit 106a2f5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/search.rb
Original file line number Diff line number Diff line change
Expand Up @@ -688,7 +688,7 @@ def process_advanced_search!(term)
elsif word == 'in:all'
@search_all_topics = true
nil
elsif %w{in:private in:personal}.include?(word) # remove private after 2.4 release
elsif word == 'in:personal'
@search_pms = true
nil
elsif word == "in:personal-direct"
Expand Down
4 changes: 2 additions & 2 deletions spec/components/search_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@
expect(results.posts).to contain_exactly(reply)

results = Search.execute(
'mars in:private',
'mars in:personal',
search_context: post.user,
guardian: Guardian.new(post.user)
)
Expand All @@ -276,7 +276,7 @@
TopicAllowedGroup.create!(group_id: group.id, topic_id: topic.id)

results = Search.execute(
'mars in:private',
'mars in:personal',
guardian: Guardian.new(user)
)

Expand Down

0 comments on commit 106a2f5

Please sign in to comment.