<p></p>
<p><b>@mmd-osm</b> commented on this pull request.</p>

<hr>

<p>In <a href="https://github.com/openstreetmap/openstreetmap-website/pull/4553#discussion_r1667754489">app/abilities/ability.rb</a>:</p>
<pre style='color:#555'>> @@ -54,6 +54,7 @@ def initialize(user)
         can [:index, :create, :destroy], UserMute
 
         if user.moderator?
+          can :show_redactions, [Node, Way, Relation, OldNode, OldWay, OldRelation]
</pre>
<p dir="auto">Well, to link to the history, you would only need the element type, object id and the current version of the object (=latest version). Based on this info, you could generate a link to the latest version, and also to the first version, if the current version is not 1.</p>
<p dir="auto">The actual history page data would then be provided by the old* objects: <a href="https://github.com/openstreetmap/openstreetmap-website/blob/012e752c0eae9450ff4ddf6083ad729779fd6eab/app/views/browse/history.html.erb#L5">https://github.com/openstreetmap/openstreetmap-website/blob/012e752c0eae9450ff4ddf6083ad729779fd6eab/app/views/browse/history.html.erb#L5</a></p>
<p dir="auto">I found it helpful to check the local PostgreSQL db and compare current_nodes and nodes table contents (representing Node and OldNode models).</p>

<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/4553#discussion_r1667754489">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLO7TLTSCKUWHXU7PV3ZLGMPJAVCNFSM6AAAAABEC6NWYOVHI2DSMVQWIX3LMV43YUDVNRWFEZLROVSXG5CSMV3GSZLXHMZDCNRRHEYTINRTG4">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AAK2OLPIK7XB2EETAGQ7HRLZLGMPJA5CNFSM6AAAAABEC6NWYOWGG33NNVSW45C7OR4XAZNRKB2WY3CSMVYXKZLTORJGK5TJMV32UY3PNVWWK3TUL5UWJTUA3QZQ2.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/4553/review/2161914637</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/4553#discussion_r1667754489",
"url": "https://github.com/openstreetmap/openstreetmap-website/pull/4553#discussion_r1667754489",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>