mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: when composing a message do not suggest deleted posts users (#15488)
This commit is contained in:
@@ -176,6 +176,12 @@ describe UserSearch do
|
||||
expect(results).to eq [mr_blue.username]
|
||||
end
|
||||
|
||||
it "does not include deleted posts users" do
|
||||
post4.trash!
|
||||
results = search_for("", topic_id: topic.id)
|
||||
expect(results).to eq [mr_orange, mr_b].map(&:username)
|
||||
end
|
||||
|
||||
it "only reveals topic participants to people with permission" do
|
||||
pm_topic = Fabricate(:private_message_post).topic
|
||||
|
||||
|
||||
Reference in New Issue
Block a user