mirror of
https://github.com/discourse/discourse.git
synced 2025-06-05 14:07:30 +08:00
FEATURE: New setting to allow all caps posts
Adds a setting to ignore text_sentinel's check on all caps content.
This commit is contained in:
@ -73,7 +73,7 @@ class TextSentinel
|
||||
|
||||
def seems_quiet?
|
||||
# We don't allow all upper case content in english
|
||||
not((@text =~ /[A-Z]+/) && !(@text =~ /[^[:ascii:]]/) && (@text == @text.upcase))
|
||||
SiteSetting.allow_uppercase_posts || not((@text =~ /[A-Z]+/) && !(@text =~ /[^[:ascii:]]/) && (@text == @text.upcase))
|
||||
end
|
||||
|
||||
end
|
||||
|
Reference in New Issue
Block a user