FIX: Edit ratelimits should be on the actor, not post owner

This commit is contained in:
riking 2014-03-27 21:46:37 -07:00
parent 150081bf27
commit 4814659b7b

View File

@ -64,7 +64,7 @@ class PostRevisor
@post.version += 1
@post.last_version_at = get_revised_at
update_post
EditRateLimiter.new(@post.user).performed! unless @opts[:bypass_rate_limiter] == true
EditRateLimiter.new(@user).performed! unless @opts[:bypass_rate_limiter] == true
bump_topic unless @opts[:bypass_bump]
end
end