<p dir="auto">Adding the API part to address <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="343411415" data-permission-text="Title is private" data-url="https://github.com/openstreetmap/openstreetmap-website/issues/1934" data-hovercard-type="issue" data-hovercard-url="/openstreetmap/openstreetmap-website/issues/1934/hovercard" href="https://github.com/openstreetmap/openstreetmap-website/issues/1934">#1934</a> to hide/unhide single note comments for moderators. The code is very closely following the existing changeset comment hide / destroy implementation.</p>
<p dir="auto">NotesController <code>comment</code> method could be moved to the new NoteCommentsController, to more closely follow the overall design in ChangesetCommentsController. I left that for another request to keep this one as small as possible.</p>

<hr>

<h4>You can view, comment on, or merge this pull request online at:</h4>
<p>  <a href='https://github.com/openstreetmap/openstreetmap-website/pull/3438'>https://github.com/openstreetmap/openstreetmap-website/pull/3438</a></p>

<h4>Commit Summary</h4>
<ul>
  <li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/3438/commits/ee85019b6d0e3d569f315993f937aae5c77c9753" class="commit-link">ee85019</a>  Added (un)hide note comments API endpoint</li>
</ul>

<h4 style="display: inline-block">File Changes </h4> <p style="display: inline-block">(<a href="https://github.com/openstreetmap/openstreetmap-website/pull/3438/files">6 files</a>)</p>
<ul>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/3438/files#diff-4f894049af3375c2bd4e608f546f8d4a0eed95464efcdea850993200db9fef5c">.rubocop.yml</a>
    (8)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/3438/files#diff-341a1cf4f83cf00816b397c262181cd7b229f1c0e9210ba57dcef3f9609c1b74">app/abilities/api_ability.rb</a>
    (1)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/3438/files#diff-38488bd50be0cf63517ec5ae3fd3c4e462b3fdda7201844b0ab3442b73b8c08d">app/abilities/api_capability.rb</a>
    (1)
  </li>
  <li>
    <strong>A</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/3438/files#diff-d3557fad4caed3267ffb14729e73aafec8bd72fbed32489a1c0e70fc78902999">app/controllers/api/note_comments_controller.rb</a>
    (52)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/3438/files#diff-959bc9abc46a55332bb64d5155a79323afa75a50ec1a2137ddd22d926f62c6c5">config/routes.rb</a>
    (3)
  </li>
  <li>
    <strong>A</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/3438/files#diff-f4c38d904f5c80ab55942f569674e9e6a54fa2fe350f6d022397ebcb16b26616">test/controllers/api/note_comments_controller_test.rb</a>
    (100)
  </li>
</ul>

<h4>Patch Links:</h4>
<ul>
  <li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/3438.patch'>https://github.com/openstreetmap/openstreetmap-website/pull/3438.patch</a></li>
  <li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/3438.diff'>https://github.com/openstreetmap/openstreetmap-website/pull/3438.diff</a></li>
</ul>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />Reply to this email directly, <a href="https://github.com/openstreetmap/openstreetmap-website/pull/3438">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLM3DCWJXBYJRHVSI3DUYMAR3ANCNFSM5NBYM2OA">unsubscribe</a>.<br />Triage notifications on the go with GitHub Mobile for <a href="https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675">iOS</a> or <a href="https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub">Android</a>.
<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AAK2OLPSPXSIFZTANWMYJPLUYMAR3A5CNFSM5NBYM2OKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4QVBAHWA.gif" height="1" width="1" alt="" /><span style="color: transparent; font-size: 0; display: none; visibility: hidden; overflow: hidden; opacity: 0; width: 0; height: 0; max-width: 0; max-height: 0; mso-hide: all">Message ID: <span><openstreetmap/openstreetmap-website/pull/3438</span><span>@</span><span>github</span><span>.</span><span>com></span></span></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/openstreetmap/openstreetmap-website/pull/3438",
"url": "https://github.com/openstreetmap/openstreetmap-website/pull/3438",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>