mirror of
https://github.com/discourse/discourse.git
synced 2026-07-29 15:54:48 -05:00
Fix: Editing a topic with an invalid title will still push it to the top (#4185)
* fix: Editing a topic with an invalid title will still push it to the top * add specs to check topic not bumped with invalid title
This commit is contained in:
committed by
Régis Hanol
parent
38d0697b2f
commit
d1f61015c0
+1
-1
@@ -363,7 +363,7 @@ class PostRevisor
|
||||
end
|
||||
|
||||
def bypass_bump?
|
||||
!@post_successfully_saved || @opts[:bypass_bump] == true
|
||||
!@post_successfully_saved || @topic_changes.errored? || @opts[:bypass_bump] == true
|
||||
end
|
||||
|
||||
def is_last_post?
|
||||
|
||||
Reference in New Issue
Block a user