<p>In app/controllers/changeset_controller.rb:</p>
<pre style='color:#555'>> @@ -305,6 +312,146 @@ def feed
> list
> end
>
> + ##
> + # Add a comment to a changeset
> + def comment
> + # Check the arguments are sane
> + raise OSM::APIBadUserInput.new("No id was given") unless params[:id]
> + raise OSM::APIBadUserInput.new("No text was given") if params[:text].blank?
> +
> + # Extract the arguments
> + id = params[:id].to_i
> + body = params[:text]
> +
> + # Find the changeset and check it is valid
> + @changeset = Changeset.find(id)
> + raise OSM::APINotFoundError unless @changeset
</pre>
<p>I removed all these not found exceptions calls from the pull request.</p>
<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br>Reply to this email directly or <a href="https://github.com/openstreetmap/openstreetmap-website/pull/772/files#r15729923">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/1419053__eyJzY29wZSI6Ik5ld3NpZXM6QmVhY29uIiwiZXhwaXJlcyI6MTcyMjYxNjU3MiwiZGF0YSI6eyJpZCI6MzU4NjU3NjJ9fQ==--a363c5e612858d6001cc506baa1721d4b0c827f8.gif" width="1" /></p>