From 9e4288a4ab8c7b176271c1c99b149b472c23854d Mon Sep 17 00:00:00 2001 From: Andrei Prigorshnev Date: Wed, 19 May 2021 14:26:15 +0400 Subject: [PATCH] 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. --- config/site_settings.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/config/site_settings.yml b/config/site_settings.yml index a1538e50851..b79b92470ec 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