mirror of
https://github.com/discourse/discourse.git
synced 2024-11-25 18:30:26 -06:00
FIX: Edit ratelimits should be on the actor, not post owner
This commit is contained in:
parent
150081bf27
commit
4814659b7b
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user