From ed811af79587046c76eb9fac2f69e3fafb85f2c7 Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Thu, 11 Feb 2016 16:57:54 +0100 Subject: [PATCH] Improved App.Utils.signatureIdentify(), take messages with more then 300 chars. --- app/assets/javascripts/app/lib/app_post/utils.coffee | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/assets/javascripts/app/lib/app_post/utils.coffee b/app/assets/javascripts/app/lib/app_post/utils.coffee index 04af75876..661b39db0 100644 --- a/app/assets/javascripts/app/lib/app_post/utils.coffee +++ b/app/assets/javascripts/app/lib/app_post/utils.coffee @@ -250,9 +250,10 @@ class App.Utils @signatureIdentify: (message, test = false) -> textToSearch = @html2text(message) - # count lines, if we do have lower the 10, ignore this + # count lines, if we do have lower the 8 or more then 300 chars ignore this textToSearchInLines = textToSearch.split("\n") if !test + return message if textToSearch.length < 300 return message if textToSearchInLines.length < 8 quote = (str) ->