<p dir="auto">This adds a subscribe/unsubscribe for changeset comments that mirrors the recently added one for diary comments and adjusts the emails for changeset comments, diary comments and notes to add appropriate List-XXX headers to them.</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/4534'>https://github.com/openstreetmap/openstreetmap-website/pull/4534</a></p>

<h4>Commit Summary</h4>
<ul>
  <li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/4534/commits/5a6a4769bb54c6f971e57987dcd76eaa7e86412b" class="commit-link">5a6a476</a>  Rename path for changeset API subscription methods</li>
  <li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/4534/commits/e0e6e47d46253373ba585f3aa0b5ecf6a97311b8" class="commit-link">e0e6e47</a>  Move mechanics of changeset subscriptions into the model</li>
  <li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/4534/commits/a45be56fadab22ceeec5b258f5061bd3b41f679f" class="commit-link">a45be56</a>  Add unsubscribe link to changeset notification mails</li>
  <li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/4534/commits/c4bcb825fa6fb62d1722e1ef11d58712a3f3468b" class="commit-link">c4bcb82</a>  Add standard List-XXX headers to some notification messages</li>
</ul>

<h4 style="display: inline-block">File Changes </h4> <p style="display: inline-block">(<a href="https://github.com/openstreetmap/openstreetmap-website/pull/4534/files">13 files</a>)</p>
<ul>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/4534/files#diff-debf59904131dc89a88ab44cbb1d6deaaa5a7d70c0507f674080df62f7c8e41f">app/abilities/ability.rb</a>
    (1)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/4534/files#diff-6726f8601cd22886963fb41888b55956cae4f8124aa12c701da77c3add44d94c">app/controllers/api/changesets_controller.rb</a>
    (10)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/4534/files#diff-cf3fe9dc357f802fd9155582ffc8c6f71185065267991a2135323ad2d044b4f3">app/controllers/changesets_controller.rb</a>
    (29)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/4534/files#diff-55254045ba774e4c360d7bbfde054665072d2ab49abc3f21add15a37bba65a1c">app/mailers/user_mailer.rb</a>
    (30)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/4534/files#diff-33e24e983f7ae5829e0e919c3843ccaaa05be35610607ec2fd486636d2c14e56">app/models/changeset.rb</a>
    (12)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/4534/files#diff-fba7159a4abd78f8b24f765a0c58ebe47a24be99e185c373175f20f612a5d781">app/views/browse/changeset.html.erb</a>
    (4)
  </li>
  <li>
    <strong>A</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/4534/files#diff-89db784a69ce34647296dbc1281f9a6b3df9c3aed35aebb6ef1e634cd938118b">app/views/changesets/no_such_entry.html.erb</a>
    (5)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/4534/files#diff-6938f68652d92caabffeaa47ad9bfcbf1ab01eaf1d92f3b155f637b2dce0fe83">app/views/user_mailer/changeset_comment_notification.html.erb</a>
    (2)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/4534/files#diff-2b096b93bc554e4c55233ebecf0eff854b636ba6a05ad17ae4322edfded24a46">app/views/user_mailer/changeset_comment_notification.text.erb</a>
    (2)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/4534/files#diff-44438ce218f5287c58d0017f965d888715635d94280669896f75841fbd7b4cd7">config/locales/en.yml</a>
    (20)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/4534/files#diff-959bc9abc46a55332bb64d5155a79323afa75a50ec1a2137ddd22d926f62c6c5">config/routes.rb</a>
    (6)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/4534/files#diff-e95198c7f7744be3ce9857db36d2374538ca7d64caaf0f6f85865d6752563ee9">test/controllers/api/changesets_controller_test.rb</a>
    (20)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/4534/files#diff-6cdb8b8fa44e422834c4815943a8e4933d6d09e4687f338d007daeff1a90daa9">test/controllers/changesets_controller_test.rb</a>
    (133)
  </li>
</ul>

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