mirror of
https://github.com/discourse/discourse.git
synced 2025-03-21 11:55:32 +08:00

If creating a topic via the api as an admin and the category you specify cannot be found an error will now be returned instead of just creating the topic with no category. This will prevent accidental public topic creation originally intended for a private category. This commit is follow up to 535c594891ec703a3b2e57c1b1a3497373d2e1f6 and still allows for the creation of topics where the category param is blank.