mirror of
https://github.com/discourse/discourse.git
synced 2025-09-06 09:10:25 +08:00
rename max_word_length to title_max_word_length
This commit is contained in:
parent
2a2bd3e946
commit
1f59375c82
19 changed files with 19 additions and 19 deletions
|
@ -30,7 +30,7 @@ class TextSentinel
|
|||
else
|
||||
(SiteSetting.min_topic_title_length.to_f * ENTROPY_SCALE).to_i
|
||||
end
|
||||
TextSentinel.new(text, min_entropy: entropy, max_word_length: SiteSetting.max_word_length)
|
||||
TextSentinel.new(text, min_entropy: entropy, max_word_length: SiteSetting.title_max_word_length)
|
||||
end
|
||||
|
||||
# Entropy is a number of how many unique characters the string needs.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue