mirror of
https://github.com/discourse/discourse.git
synced 2025-05-30 15:28:37 +08:00
FIX: allow searching in PMs when "search this topic" is selected
This commit is contained in:
@ -126,6 +126,13 @@ describe Search do
|
||||
|
||||
results.posts.length.should == 1
|
||||
|
||||
|
||||
results = Search.execute('mars',
|
||||
search_context: topic,
|
||||
guardian: Guardian.new(reply.user))
|
||||
|
||||
results.posts.length.should == 1
|
||||
|
||||
# does not leak out
|
||||
results = Search.execute('mars',
|
||||
type_filter: 'private_messages',
|
||||
|
Reference in New Issue
Block a user