diff --git a/og-image/api/_lib/template.ts b/og-image/api/_lib/template.ts index 911cc001..f99689e0 100644 --- a/og-image/api/_lib/template.ts +++ b/og-image/api/_lib/template.ts @@ -94,7 +94,7 @@ export function getHtml(parsedReq: ParsedRequest) { challengeAmount, challengeOutcome, } = parsedReq - const MAX_QUESTION_CHARS = 100 + const MAX_QUESTION_CHARS = challengeAmount ? 85 : 100 const truncatedQuestion = question.length > MAX_QUESTION_CHARS ? question.slice(0, MAX_QUESTION_CHARS) + '...' @@ -147,11 +147,11 @@ export function getHtml(parsedReq: ParsedRequest) {