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