mirror of
https://github.com/discourse/discourse.git
synced 2025-05-31 21:25:24 +08:00
Migrate score settings to use sensitivities
We hide scores so these settings no longer made sense.
This commit is contained in:
@ -166,9 +166,9 @@ private
|
||||
@post.user&.trust_level != TrustLevel[4]
|
||||
|
||||
@post.hide!(@post_action_type_id, Post.hidden_reasons[:flagged_by_tl4_user])
|
||||
elsif SiteSetting.score_required_to_hide_post > 0
|
||||
else
|
||||
score = ReviewableFlaggedPost.find_by(target: @post)&.score || 0
|
||||
if score >= SiteSetting.score_required_to_hide_post
|
||||
if score >= Reviewable.score_required_to_hide_post
|
||||
@post.hide!(@post_action_type_id)
|
||||
end
|
||||
end
|
||||
|
Reference in New Issue
Block a user