mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 22:43:33 +08:00
FIX: Validation of topic params broke discourse-assign
This commit is contained in:
@ -23,7 +23,6 @@ class TopicQuery
|
||||
|
||||
{
|
||||
max_posts: zero_or_more,
|
||||
exclude_category_ids: array_zero_or_more,
|
||||
min_posts: zero_or_more,
|
||||
}
|
||||
end
|
||||
|
@ -17,9 +17,6 @@ RSpec.describe ListController do
|
||||
end
|
||||
|
||||
it "does not return a 500 for invalid input" do
|
||||
get "/latest?exclude_category_ids[]=bob"
|
||||
expect(response.status).to eq(400)
|
||||
|
||||
get "/latest?min_posts=bob"
|
||||
expect(response.status).to eq(400)
|
||||
|
||||
|
Reference in New Issue
Block a user