<p></p>
<p dir="auto">Currently the same code sets the Open Graph meta tags for every page, regardless of the view:</p>
<p dir="auto"><a href="https://github.com/openstreetmap/openstreetmap-website/blob/466de96a91ece362400ec7ffe73ed243f9ce3067/app/helpers/open_graph_helper.rb#L3-L11">https://github.com/openstreetmap/openstreetmap-website/blob/466de96a91ece362400ec7ffe73ed243f9ce3067/app/helpers/open_graph_helper.rb#L3-L11</a></p>
<p dir="auto">The <a href="https://ogp.me/" rel="nofollow">Open Graph Protocol specification</a> describes an <code class="notranslate">article</code> namespace that would be useful for diary posts as long as <code class="notranslate">og:type</code> is set to <code class="notranslate">article</code>. Diary posts should also have <code class="notranslate">og:locale</code> set to the post’s language. I suppose changesets could be articles as well, with <code class="notranslate">article:published_time</code> and <code class="notranslate">article:modified_time</code> corresponding to the changeset’s opened and closed timestamps.</p>
<blockquote>
<p dir="auto">Especially for changeset, this may cause some strange side effect: you will still see all details as long as you're authenticated, and a forbidden message otherwise. Sharing such a "forbidden" link on Twitter isn't exactly what people expect.</p>
</blockquote>
<p dir="auto">I think this would only be relevant to changesets in the proposal above. The user and diary post views should be unaffected, because the user name is part of the URL anyways.</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/issues/2007#issuecomment-1610461991">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLPQ3DKECF2EA4DRS2DXNOCLJANCNFSM4FYCUJLA">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AAK2OLK4JSFBSLRDB44NAWLXNOCLJA5CNFSM4FYCUJLKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOL763GJY.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/issues/2007/1610461991</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/issues/2007#issuecomment-1610461991",
"url": "https://github.com/openstreetmap/openstreetmap-website/issues/2007#issuecomment-1610461991",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>