mirror of
https://github.com/discourse/discourse.git
synced 2025-05-30 15:28:37 +08:00
FEATURE: Disable minimum post length check when in PM with non human users.
https://meta.discourse.org/t/discourse-narrative-bot-beta-feedback/58621/65?u=tgxworld
This commit is contained in:
@ -30,7 +30,7 @@ class Validators::PostValidator < ActiveModel::Validator
|
||||
end
|
||||
|
||||
def post_body_validator(post)
|
||||
return if options[:skip_post_body]
|
||||
return if options[:skip_post_body] || post.topic&.pm_with_non_human_user?
|
||||
stripped_length(post)
|
||||
raw_quality(post)
|
||||
end
|
||||
|
Reference in New Issue
Block a user