<p dir="auto">As a moderator you can hide a note. And you can unhide it of course. The problem is that you can only unhide the note if you know its id. If you've found the note with an api search call, you can't repeat the search to find the note again because hidden notes are skipped by api searches. What if you still want to find the note?</p>
<p dir="auto">One possible solution is to make hidden notes accessible by search/bbox api calls if the user is logged in and is a moderator. But that might be unexpected by apps that are used to receive notes with either "open" or "closed" status. With this change, if they make a search with authorization headers, they may also get notes with "hidden" status. Not even openstreetmap-website note layer knows how to display such notes.</p>
<p dir="auto">Another solution, which is implemented here, is to add a parameter, similar to the (undocumented) <a href="https://github.com/openstreetmap/openstreetmap-website/blob/83f6f19bfbfaf421d8a678d0ac20a6ffe83cba6d/app/controllers/api/old_controller.rb#L76"><code class="notranslate">show_redactions</code></a> parameter that lets moderators see redacted elements. I called the parameter <code class="notranslate">show_hidden</code> because in case of notes it has nothing to do with redactions.</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/3934'>https://github.com/openstreetmap/openstreetmap-website/pull/3934</a></p>

<h4>Commit Summary</h4>
<ul>
  <li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/3934/commits/578fe7b9dc6fbcbf38cfb80b1bc35865cf80dc7c" class="commit-link">578fe7b</a>  Add show_hidden parameter for note queries</li>
</ul>

<h4 style="display: inline-block">File Changes </h4> <p style="display: inline-block">(<a href="https://github.com/openstreetmap/openstreetmap-website/pull/3934/files">2 files</a>)</p>
<ul>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/3934/files#diff-6e9fe051c0ef757618e376ffe731dfca8d4960ef0838b7d6a05609b46ba0fad1">app/controllers/api/notes_controller.rb</a>
    (8)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/3934/files#diff-b4cc80ae5a4279eef2a7494cb8c489220ce03acaf36932b2042247df9d316908">test/controllers/api/notes_controller_test.rb</a>
    (10)
  </li>
</ul>

<h4>Patch Links:</h4>
<ul>
  <li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/3934.patch'>https://github.com/openstreetmap/openstreetmap-website/pull/3934.patch</a></li>
  <li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/3934.diff'>https://github.com/openstreetmap/openstreetmap-website/pull/3934.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/3934">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLKODYTYKNZJNXXK4HDWXVYWBANCNFSM6AAAAAAU5QHMPM">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AAK2OLIIHQGKE7QN4JBJX3TWXVYWBA5CNFSM6AAAAAAU5QHMPOWGG33NNVSW45C7OR4XAZNFJFZXG5LFVJRW63LNMVXHIX3JMTHF5FFSVM.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/3934</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/3934",
"url": "https://github.com/openstreetmap/openstreetmap-website/pull/3934",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>