mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-02-01 20:30:07 +01:00
make meta desc 160 chars
This commit is contained in:
@@ -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, ' ');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user