mirror of
https://github.com/discourse/discourse.git
synced 2025-05-21 18:12:32 +08:00
FIX: disagree flag should unhide hidden post
This commit is contained in:
@ -68,7 +68,7 @@ class Validators::PostValidator < ActiveModel::Validator
|
||||
def unique_post_validator(post)
|
||||
return if SiteSetting.unique_posts_mins == 0
|
||||
return if post.skip_unique_check
|
||||
return if post.acting_user.admin? || post.acting_user.moderator?
|
||||
return if post.acting_user.staff?
|
||||
|
||||
# If the post is empty, default to the validates_presence_of
|
||||
return if post.raw.blank?
|
||||
|
Reference in New Issue
Block a user