mirror of
https://github.com/discourse/discourse.git
synced 2025-09-06 10:50:21 +08:00
FIX: Validation of topic params broke discourse-assign
This commit is contained in:
parent
87fa26b6c8
commit
ba0e322fd0
2 changed files with 0 additions and 4 deletions
|
@ -23,7 +23,6 @@ class TopicQuery
|
||||||
|
|
||||||
{
|
{
|
||||||
max_posts: zero_or_more,
|
max_posts: zero_or_more,
|
||||||
exclude_category_ids: array_zero_or_more,
|
|
||||||
min_posts: zero_or_more,
|
min_posts: zero_or_more,
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
|
@ -17,9 +17,6 @@ RSpec.describe ListController do
|
||||||
end
|
end
|
||||||
|
|
||||||
it "does not return a 500 for invalid input" do
|
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"
|
get "/latest?min_posts=bob"
|
||||||
expect(response.status).to eq(400)
|
expect(response.status).to eq(400)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue