mirror of
https://github.com/discourse/discourse.git
synced 2024-12-05 08:03:40 +08:00
7 lines
178 B
Ruby
7 lines
178 B
Ruby
require 'rate_limiter'
|
|
class EditRateLimiter < RateLimiter
|
|
def initialize(user)
|
|
super(user, "edit-post:#{Date.today}", SiteSetting.max_edits_per_day, 1.day.to_i)
|
|
end
|
|
end
|