[openstreetmap/openstreetmap-website] Add rate limiting for changeset comments (PR #4202)

Andy Allan notifications at github.com
Wed Aug 30 09:56:48 UTC 2023


@gravitystorm commented on this pull request.



> @@ -395,6 +395,19 @@ def max_friends_per_hour
     max_friends.clamp(0, Settings.max_friends_per_hour)
   end
 
+  def max_changeset_comments_per_hour
+    if moderator?
+      36000

Maybe better as "60 * 60 * 10" since I thought that was one per second when I read it at first.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/4202#pullrequestreview-1602342549
You are receiving this because you are subscribed to this thread.

Message ID: <openstreetmap/openstreetmap-website/pull/4202/review/1602342549 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20230830/5308c849/attachment-0001.htm>


More information about the rails-dev mailing list