mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
Converted flag threshold constants to enums
This commit is contained in:
@@ -69,7 +69,7 @@ class PostRevisor
|
||||
@post.updated_by = @user
|
||||
@post.last_editor_id = @user.id
|
||||
|
||||
if @post.hidden && @post.hidden_reason_id == Post::HiddenReason::FLAG_THRESHOLD_REACHED
|
||||
if @post.hidden && @post.hidden_reason_id == Post.hidden_reasons[:flag_threshold_reached]
|
||||
@post.hidden = false
|
||||
@post.hidden_reason_id = nil
|
||||
@post.topic.update_attributes(visible: true)
|
||||
|
Reference in New Issue
Block a user