From ea05b7ec5afee148edb4fd34000a9523356e64da Mon Sep 17 00:00:00 2001 From: Demetrios Skamiotis Date: Mon, 3 Jun 2024 16:20:23 +0100 Subject: [PATCH] reduce char count for second paragraph --- common/app/model/dotcomrendering/DotcomRenderingUtils.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/app/model/dotcomrendering/DotcomRenderingUtils.scala b/common/app/model/dotcomrendering/DotcomRenderingUtils.scala index a185afba9796..656949432b2a 100644 --- a/common/app/model/dotcomrendering/DotcomRenderingUtils.scala +++ b/common/app/model/dotcomrendering/DotcomRenderingUtils.scala @@ -255,7 +255,7 @@ object DotcomRenderingUtils { if (bodyElements.size >= 2) { val firstEl = bodyElements.get(0) val secondEl = bodyElements.get(1) - if (firstEl.tagName == "p" && secondEl.tagName == "p" && secondEl.text().length >= 250) { + if (firstEl.tagName == "p" && secondEl.tagName == "p" && secondEl.text().length >= 150) { AffiliateLinksCleaner.shouldAddAffiliateLinks( switchedOn = Switches.AffiliateLinks.isSwitchedOn, section = content.metadata.sectionId,