FEATURE: constrain post_excerpt_maxlength (#13064)

FEATURE: constrain post_excerpt_maxlength (#13064)

Too long excerpts don’t make sense. They would make UI wonky. We already have a constraint for the topic_excerpt_maxlength setting. This adds the same constraint to post_excerpt_maxlength.

It also changes the max value of topic_excerpt_maxlength from 999 to 1000.

diff --git a/config/site_settings.yml b/config/site_settings.yml
index a1538e5..b79b924 100644
--- a/config/site_settings.yml
+++ b/config/site_settings.yml
@@ -863,13 +863,14 @@ posting:
     default: 0
   post_excerpt_maxlength:
     default: 300
+    max: 1000
     locale_default:
       ja: 120
       zh_CN: 120
       zh_TW: 120
   topic_excerpt_maxlength:
     default: 220
-    max: 999
+    max: 1000
     locale_default:
       ja: 120
       zh_CN: 120

GitHub sha: 9e4288a4

This commit appears in #13064 which was approved by eviltrout. It was merged by AndrewPrigorshnev.