From d269a183151bba4bd166405668e66cfa8a9a100d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Benqu=C3=A9?= Date: Thu, 4 Mar 2021 15:22:24 +0000 Subject: [PATCH] Truncate support messages after 2000 chars --- www/support/ui.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/www/support/ui.js b/www/support/ui.js index 19755d6c7..947a43d93 100644 --- a/www/support/ui.js +++ b/www/support/ui.js @@ -371,8 +371,8 @@ define([ var pre = h('pre.cp-support-message-content'); var $pre = $(pre); var more; - if (content.message.length >= 3000) { - displayed = content.message.slice(0, 3000) + '...'; + if (content.message.length >= 2000) { + displayed = content.message.slice(0, 2000) + '...'; var expand = h('button.btn.btn-secondary', Messages.admin_support_open); var collapse = h('button.btn.btn-secondary', Messages.admin_support_collapse); var $collapse = $(collapse).hide();