mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-30 18:46:01 +01:00
fix: don't chop off colons when generating titles as they could interfere with emoji
This commit is contained in:
@@ -343,9 +343,6 @@ Helpers.generateTitle = (html) => {
|
||||
title = sentences.shift();
|
||||
}
|
||||
|
||||
// Trim certain punctuation marks
|
||||
title = title.trim().replace(/[:]$/, '');
|
||||
|
||||
// Truncate down if too long
|
||||
if (title.length > meta.config.maximumTitleLength) {
|
||||
title = `${title.slice(0, meta.config.maximumTitleLength - 3)}...`;
|
||||
|
||||
Reference in New Issue
Block a user