From 0ff1f82b5c1321c62f732af1f8a0cab54bec97fb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Soner=20U=C5=9Fakl=C4=B1?= Date: Sat, 8 Jul 2023 14:55:29 -0400 Subject: [PATCH] make meta desc 160 chars --- src/controllers/topics.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/controllers/topics.js b/src/controllers/topics.js index 442799e56a..7e6ff393a2 100644 --- a/src/controllers/topics.js +++ b/src/controllers/topics.js @@ -210,7 +210,7 @@ async function addTags(topicData, req, res, currentPage) { } if (description.length > 160) { - description = `${description.slice(0, 160)}...`; + description = `${description.slice(0, 157)}...`; } description = description.replace(/\n/g, ' ');