Node.js based forum software built for the modern web
change description length to 160
Barış Soner Uşaklı9044e10e64fd
diff --git a/src/controllers/topics.js b/src/controllers/topics.jsindex 58ca059502..442799e56a 100644--- a/src/controllers/topics.js+++ b/src/controllers/topics.js@@ -209,8 +209,8 @@ async function addTags(topicData, req, res, currentPage) {description = utils.stripHTMLTags(utils.decodeHTMLEntities(postAtIndex.content));}- if (description.length > 255) {- description = `${description.slice(0, 255)}...`;+ if (description.length > 160) {+ description = `${description.slice(0, 160)}...`;}description = description.replace(/\n/g, ' ');