fix: #11761, don't escape topic title twice

if a reply is being edited topicData.title is already escaped
This commit is contained in:
Barış Soner Uşaklı
2023-06-27 13:57:44 -04:00
parent e45f513bfe
commit 01c36f8bfb
2 changed files with 2 additions and 3 deletions

View File

@@ -112,7 +112,7 @@ module.exports = function (Posts) {
return {
tid: tid,
cid: topicData.cid,
title: validator.escape(String(topicData.title)),
title: topicData.title,
isMainPost: false,
renamed: false,
tagsupdated: false,