mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-07-11 01:13:34 +02:00
change description length to 160
This commit is contained in:
@@ -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, ' ');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user