Skip to content

Node.js based forum software built for the modern web

make meta desc 160 chars

Barış Soner Uşaklı0ff1f82b5c13
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, ' ');