<p dir="auto">as I propose in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="2116148446" data-permission-text="Title is private" data-url="https://github.com/openstreetmap/openstreetmap-website/issues/4505" data-hovercard-type="pull_request" data-hovercard-url="/openstreetmap/openstreetmap-website/pull/4505/hovercard" href="https://github.com/openstreetmap/openstreetmap-website/pull/4505">#4505</a>:</p>
<ul dir="auto">
<li>add diary subscribe/unsubscribe pages for GET requests that contain a button to make a POST request<br>
<a href="https://github.com/openstreetmap/openstreetmap-website/assets/4158490/ca00107d-b5ce-4ddd-a59b-416a945ff0fc">image.png (view on web)</a></li>
<li>these pages redirect to login if required</li>
<li>add an unsubscribe page link to comment notification emails</li>
</ul>

<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/4523'>https://github.com/openstreetmap/openstreetmap-website/pull/4523</a></p>

<h4>Commit Summary</h4>
<ul>
  <li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/4523/commits/3a873b16685c441bb4d68c323006db2fd2b71c5c" class="commit-link">3a873b1</a>  Add diary entry subscribe/unsubscribe GET pages</li>
  <li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/4523/commits/a07df4c67bb418398aec48955ffdb74b6ad9eaaf" class="commit-link">a07df4c</a>  Add unsubscribe link to diary comment notification email</li>
</ul>

<h4 style="display: inline-block">File Changes </h4> <p style="display: inline-block">(<a href="https://github.com/openstreetmap/openstreetmap-website/pull/4523/files">12 files</a>)</p>
<ul>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/4523/files#diff-4b73866ef57c70fca07c0f330d7a57aae939b11e4aae0514f303df3aa3762f89">app/controllers/diary_entries_controller.rb</a>
    (16)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/4523/files#diff-55254045ba774e4c360d7bbfde054665072d2ab49abc3f21add15a37bba65a1c">app/mailers/user_mailer.rb</a>
    (1)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/4523/files#diff-19308fdc270ab97cbcfbfa5628325285149496524b767672f8e80f1079db29f9">app/views/diary_entries/_diary_entry.html.erb</a>
    (23)
  </li>
  <li>
    <strong>A</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/4523/files#diff-79b27ebb1d94f7a59f3565da4dd658ff6691a8949941464607d6328dd6fbaa48">app/views/diary_entries/_diary_entry_heading.html.erb</a>
    (21)
  </li>
  <li>
    <strong>A</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/4523/files#diff-50bc449e6b21e15dbd8af5b220b40b2d3e687b2abd2e89ea9fa9aaa32a7764ac">app/views/diary_entries/subscribe.html.erb</a>
    (12)
  </li>
  <li>
    <strong>A</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/4523/files#diff-82719e8205447e75315100fc7b25e4e6cdcf9b8439f23eac6f70bb024a070e2f">app/views/diary_entries/unsubscribe.html.erb</a>
    (12)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/4523/files#diff-ba01eab7ec4d4ae2d3d5014ea9a810e88ae1cae98205184baf156ce45dfa3521">app/views/user_mailer/diary_comment_notification.html.erb</a>
    (3)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/4523/files#diff-a36fd11c18a41c175d74002d6ee98f541bd6b40cae7949dafc8b3343c1692957">app/views/user_mailer/diary_comment_notification.text.erb</a>
    (2)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/4523/files#diff-44438ce218f5287c58d0017f965d888715635d94280669896f75841fbd7b4cd7">config/locales/en.yml</a>
    (8)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/4523/files#diff-959bc9abc46a55332bb64d5155a79323afa75a50ec1a2137ddd22d926f62c6c5">config/routes.rb</a>
    (4)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/4523/files#diff-10a5c4533814c8b1222f0ef0833c82edd68584d85757fc431557b39813777c19">test/controllers/diary_entries_controller_test.rb</a>
    (46)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/4523/files#diff-3b2293412c91922d53358a642a2fb70e51ea4f4dce899f33a577fac2c662d91c">test/mailers/user_mailer_test.rb</a>
    (15)
  </li>
</ul>

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