Skip to content

Commit

Permalink
Merge pull request #27197 from guardian/ds/skimlinks-reduce-char-count
Browse files Browse the repository at this point in the history
make more articles eligible for affiliate links
  • Loading branch information
dskamiotis authored Jun 6, 2024
2 parents 37484f2 + ea05b7e commit 372b051
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 372b051

Please sign in to comment.