Support parsing array in #param_to_integer_list (PR #14808)

This PR adds support for topic_ids to be passed as an array in the query parameter.

Context/Usecase: We pass topic_ids as an array to the /latest.json route to get select topics.

Expected Behaviour:

{"topic_list":{"can_create_topic":false,"per_page":30,"top_tags":[],"topics":[]}}

Current Behaviour: discourse errors out with internal server error.

example:

http://localhost:3000/latest.json?topic_ids%5B%5D=14583&topic_ids%5B%5D=14584

#=> {"status":500,"error":"Internal Server Error"}

GitHub

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

This seems good to me, thanks.

Thank you for your review. Does this require any other changes for completion.

Sorry I was just waiting for CI to finish then forgot about it! It’s merged now. Thanks for following up.

Thank you for the merge! @eviltrout