DEV: Drop support for deprecated `in:private` search filter.

This commit is contained in:
Guo Xiang Tan 2020-08-21 17:18:18 +08:00
parent ab5d738231
commit 106a2f58a2
No known key found for this signature in database
GPG Key ID: FBD110179AAC1F20
2 changed files with 3 additions and 3 deletions

View File

@ -688,7 +688,7 @@ class Search
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"

View File

@ -259,7 +259,7 @@ describe Search do
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)
)
@ -276,7 +276,7 @@ describe Search do
TopicAllowedGroup.create!(group_id: group.id, topic_id: topic.id)
results = Search.execute(
'mars in:private',
'mars in:personal',
guardian: Guardian.new(user)
)