mirror of
https://github.com/codeninjasllc/discourse.git
synced 2025-02-25 16:04:22 -05:00
FIX: Edit ratelimits should be on the actor, not post owner
This commit is contained in:
parent
150081bf27
commit
4814659b7b
1 changed files with 1 additions and 1 deletions
|
@ -64,7 +64,7 @@ class PostRevisor
|
||||||
@post.version += 1
|
@post.version += 1
|
||||||
@post.last_version_at = get_revised_at
|
@post.last_version_at = get_revised_at
|
||||||
update_post
|
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]
|
bump_topic unless @opts[:bypass_bump]
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue