<h3>Observed behavior</h3>
<p>Displaying a note with no comments yields an error 500.</p>
<h3>How to reproduce</h3>
<p>Display this note: <a href="https://www.openstreetmap.org/note/940980" rel="nofollow">https://www.openstreetmap.org/note/940980</a><br>
the note via the API: <a href="https://api.openstreetmap.org/api/0.6/notes/940980" rel="nofollow">https://api.openstreetmap.org/api/0.6/notes/940980</a></p>
<h3>Expected behavior</h3>
<ol>
<li>The OSM Api should reject creating a note without an initial comment</li>
<li>Either all current notes with no comments are deleted from DB or displaying a note with no comment should not yield an error 500</li>
</ol>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/openstreetmap/openstreetmap-website/issues/2146">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABWnLbP3hi8fiTia0ZlPdVFW30CG1zBKks5vOWG4gaJpZM4a_k1V">mute the thread</a>.<img src="https://github.com/notifications/beacon/ABWnLWVjl9cMB-nf9Izze3p1x7LBBJ0Wks5vOWG4gaJpZM4a_k1V.gif" height="1" width="1" alt="" /></p>
<script type="application/json" data-scope="inboxmarkup">{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/openstreetmap/openstreetmap-website","title":"openstreetmap/openstreetmap-website","subtitle":"GitHub repository","main_image_url":"https://github.githubassets.com/images/email/message_cards/header.png","avatar_image_url":"https://github.githubassets.com/images/email/message_cards/avatar.png","action":{"name":"Open in GitHub","url":"https://github.com/openstreetmap/openstreetmap-website"}},"updates":{"snippets":[{"icon":"DESCRIPTION","message":"Error 500 on showing note with no comments (#2146)"}],"action":{"name":"View Issue","url":"https://github.com/openstreetmap/openstreetmap-website/issues/2146"}}}</script>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/openstreetmap/openstreetmap-website/issues/2146",
"url": "https://github.com/openstreetmap/openstreetmap-website/issues/2146",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>