<p dir="auto">This inspired by but not identical to the algorithm proposed in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1859291690" data-permission-text="Title is private" data-url="https://github.com/openstreetmap/openstreetmap-website/issues/4196" data-hovercard-type="issue" data-hovercard-url="/openstreetmap/openstreetmap-website/issues/4196/hovercard" href="https://github.com/openstreetmap/openstreetmap-website/issues/4196">#4196</a>.</p>
<p dir="auto">It ramps up to a specified maximum rate (default 60 per hour or 1 per minute) over the first two hundred changesets, subject to a configured minimum that defaults to 1 every 10 minutes with each unresolved report of the user halving the limit.</p>
<p dir="auto">By my calculations this algorithm, with these defaults, will take just under 12 hours to reach the maximum limit if you constantly post as soon as you can - so that would be two hundred posts in 12 hours after which you can do 60 per hour and all assuming nobody has reported you.</p>
<p dir="auto">Moderators have an arbitrary high limit of ten per second.</p>
<p dir="auto">The down rating for reports might be a bit harsh but we can adjust it if that turns out the be the case.</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/4202'>https://github.com/openstreetmap/openstreetmap-website/pull/4202</a></p>

<h4>Commit Summary</h4>
<ul>
  <li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/4202/commits/799022a1be5444bcc0b6e9d1063d6ff0329c2df6" class="commit-link">799022a</a>  Add rate limiting for changeset comments</li>
</ul>

<h4 style="display: inline-block">File Changes </h4> <p style="display: inline-block">(<a href="https://github.com/openstreetmap/openstreetmap-website/pull/4202/files">9 files</a>)</p>
<ul>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/4202/files#diff-e8b0bd562b0aaead17e44d572d51fcc72fa846c7b54ae5df2dc6434fb80834dc">app/assets/javascripts/index/changeset.js</a>
    (6)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/4202/files#diff-cbcb9ae851f89928d6366b8fbce29b38d3fb6dcc2c7ae61fdf7f3bb40911b976">app/controllers/api/changeset_comments_controller.rb</a>
    (1)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/4202/files#diff-9802ca3c9c4cf89904fd44bc114e35ebdf2c5dd3d5b645491e2b253e1afef29b">app/models/user.rb</a>
    (13)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/4202/files#diff-fba7159a4abd78f8b24f765a0c58ebe47a24be99e185c373175f20f612a5d781">app/views/browse/changeset.html.erb</a>
    (2)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/4202/files#diff-e769bbb8c1ba3711c5403b424ed9c218ffafba7f1890ee394717196f28ff4540">config/settings.yml</a>
    (3)
  </li>
  <li>
    <strong>A</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/4202/files#diff-9e57ed4c7e2d94bb304e230925e7584707b3abedc3c9df3ad4f53dc0abc6798b">db/migrate/20230825162137_restore_author_index_to_changeset_comments.rb</a>
    (7)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/4202/files#diff-1dd5a8f580b9615769ddc19a64a98f455d9d20eb149c443f41d9d3c797d39b12">db/structure.sql</a>
    (7)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/4202/files#diff-f8a27e50423ab8e432a0ac66073c425c0c4eb520ecd92bf152b21e6e966b4754">lib/osm.rb</a>
    (7)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/4202/files#diff-d9b2ae2e2b75786d4664345e608b1dd8e34b7854f4714bdec7afeb29b3710159">test/controllers/api/changeset_comments_controller_test.rb</a>
    (21)
  </li>
</ul>

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