<p dir="auto">Uses the first paragraph with text truncated to 500 characters as an OpenGraph description on diary entry pages. Uses the default text on other pages or if no paragraph with text is found.</p>
<p dir="auto"><span class="issue-keyword tooltipped tooltipped-se" aria-label="This pull request closes issue #1361.">Fixes</span> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="188008491" data-permission-text="Title is private" data-url="https://github.com/openstreetmap/openstreetmap-website/issues/1361" data-hovercard-type="issue" data-hovercard-url="/openstreetmap/openstreetmap-website/issues/1361/hovercard" href="https://github.com/openstreetmap/openstreetmap-website/issues/1361">#1361</a></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/5056'>https://github.com/openstreetmap/openstreetmap-website/pull/5056</a></p>
<h4>Commit Summary</h4>
<ul>
<li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/5056/commits/097a414b22a9068cd9af6ec758eb2876da3dd654" class="commit-link">097a414</a> Add a blank richtext description method</li>
<li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/5056/commits/aa8dd75e5ec959e377f469a83bf67898472a67e5" class="commit-link">aa8dd75</a> Use first paragraph as richtext description</li>
<li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/5056/commits/e5279dacde1f53db0d94a1bca2ab4ff45ed5ceec" class="commit-link">e5279da</a> Detect <p> as richtext paragraph</li>
<li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/5056/commits/88a7ca5625344e31538600d251ab227824582467" class="commit-link">88a7ca5</a> Truncate long richtext descriptions</li>
<li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/5056/commits/6be766d015c692703d053997e5575f13f77d442a" class="commit-link">6be766d</a> Skip paragraphs with no text when looking for richtext description</li>
<li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/5056/commits/2a15c3d54c14c9f4b35c58c91d0ece27bace4a93" class="commit-link">2a15c3d</a> Pass properties hash to OpenGraph helper</li>
<li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/5056/commits/34b9bcb0d55b407309759edc608c705e4b7ec105" class="commit-link">34b9bcb</a> Set OpenGraph properties hash in diary entry show action</li>
<li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/5056/commits/7b85a18e8eaecc697066eb5ef963c697c8452b7d" class="commit-link">7b85a18</a> Set og:description meta tag to diary entry description</li>
</ul>
<h4 style="display: inline-block">File Changes </h4> <p style="display: inline-block">(<a href="https://github.com/openstreetmap/openstreetmap-website/pull/5056/files">6 files</a>)</p>
<ul>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/5056/files#diff-4b73866ef57c70fca07c0f330d7a57aae939b11e4aae0514f303df3aa3762f89">app/controllers/diary_entries_controller.rb</a>
(7)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/5056/files#diff-3b130313f33af70814d5335654e0d36dd7225fde4555e9db4aeb59daf7da6924">app/helpers/open_graph_helper.rb</a>
(18)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/5056/files#diff-b3aa1d88647a55c139237705e584a32ca1962ba65e0e1b55b714fcc2b8e9c2fb">app/views/layouts/_meta.html.erb</a>
(2)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/5056/files#diff-6854f233485e4f1bf82ed21283e3637f9114d7c5431b80926ba2f5657b54e9fb">lib/rich_text.rb</a>
(47)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/5056/files#diff-10a5c4533814c8b1222f0ef0833c82edd68584d85757fc431557b39813777c19">test/controllers/diary_entries_controller_test.rb</a>
(22)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/5056/files#diff-c1cefbd36a92f5d74850361751b9b01c7d326221cfa8c15c0c071008165de745">test/lib/rich_text_test.rb</a>
(52)
</li>
</ul>
<h4>Patch Links:</h4>
<ul>
<li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/5056.patch'>https://github.com/openstreetmap/openstreetmap-website/pull/5056.patch</a></li>
<li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/5056.diff'>https://github.com/openstreetmap/openstreetmap-website/pull/5056.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/5056">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLPIYEOZ4LH6WHOPEJ3ZQGYJXAVCNFSM6AAAAABMDVA4IOVHI2DSMVQWIX3LMV43ASLTON2WKOZSGQ2TENJSGY2TIMA">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AAK2OLLI5IYVN3MTPER6GN3ZQGYJXA5CNFSM6AAAAABMDVA4IOWGG33NNVSW45C7OR4XAZNFJFZXG5LFVJRW63LNMVXHIX3JMTHJELUVZQ.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/5056</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/5056",
"url": "https://github.com/openstreetmap/openstreetmap-website/pull/5056",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>