<p>In <a class="issue-link js-issue-link" data-error-text="Failed to load issue title" data-id="444354826" data-permission-text="Issue title is private" data-url="https://github.com/openstreetmap/openstreetmap-website/issues/2226" data-hovercard-type="pull_request" data-hovercard-url="/openstreetmap/openstreetmap-website/pull/2226/hovercard" href="https://github.com/openstreetmap/openstreetmap-website/pull/2226">#2226</a> @tomhuges wrote:</p>
<blockquote>
<p>I do really need an easy way to be able to see the user's diary posts or comments with deleted entries included.</p>
</blockquote>
<p>So here we go! This PR shows deleted diary entries to administrators, so long as the user hasn't also been deleted. It also shows deleted diary comments to administrators. It shows these deleted things deemphasized, and allows admins to restore them if desired.</p>
<p>There's a small difference in functionality between entries and comments, because comments are always shown (i.e. not filtered by user status). However, that was more complexity and we're already getting into some deep hypothetical weeds here.</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/2248'>https://github.com/openstreetmap/openstreetmap-website/pull/2248</a></p>
<h4>Commit Summary</h4>
<ul>
<li>Allow administrators to unhide diary entries, if they wish</li>
<li>Show deleted diary entries to administrators, if the user isn't also deleted</li>
<li>Allow admins to unhide diary comments, if they wish</li>
<li>Show all diary comments to administrators</li>
</ul>
<h4>File Changes</h4>
<ul>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/2248/files#diff-0">app/abilities/ability.rb</a>
(2)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/2248/files#diff-1">app/controllers/diary_entries_controller.rb</a>
(16)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/2248/files#diff-2">app/views/diary_entries/_diary_comment.html.erb</a>
(8)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/2248/files#diff-3">app/views/diary_entries/_diary_entry.html.erb</a>
(8)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/2248/files#diff-4">app/views/diary_entries/show.html.erb</a>
(2)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/2248/files#diff-5">config/locales/en.yml</a>
(2)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/2248/files#diff-6">config/routes.rb</a>
(2)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/2248/files#diff-7">test/controllers/diary_entries_controller_test.rb</a>
(59)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/2248/files#diff-8">test/system/diary_entry_test.rb</a>
(46)
</li>
</ul>
<h4>Patch Links:</h4>
<ul>
<li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/2248.patch'>https://github.com/openstreetmap/openstreetmap-website/pull/2248.patch</a></li>
<li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/2248.diff'>https://github.com/openstreetmap/openstreetmap-website/pull/2248.diff</a></li>
</ul>
<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/pull/2248?email_source=notifications&email_token=AAK2OLLLMZ6NQVO76PGPEIDPY7CABA5CNFSM4HTYQBX2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4GXY56XA">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLJECFRSAAMQY4DRZKTPY7CABANCNFSM4HTYQBXQ">mute the thread</a>.<img src="https://github.com/notifications/beacon/AAK2OLJ6RZ6SMJMWQKKXG63PY7CABA5CNFSM4HTYQBX2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4GXY56XA.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/openstreetmap/openstreetmap-website/pull/2248?email_source=notifications\u0026email_token=AAK2OLLLMZ6NQVO76PGPEIDPY7CABA5CNFSM4HTYQBX2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4GXY56XA",
"url": "https://github.com/openstreetmap/openstreetmap-website/pull/2248?email_source=notifications\u0026email_token=AAK2OLLLMZ6NQVO76PGPEIDPY7CABA5CNFSM4HTYQBX2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4GXY56XA",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>