Skip to content

Node.js based forum software built for the modern web

fix: hide titleRaw for deleted topics as well

Barış Soner Uşaklıedf80cfb3b01
diff --git a/src/categories/topics.js b/src/categories/topics.js
index df6c3c5df4..381776738d 100644
--- a/src/categories/topics.js
+++ b/src/categories/topics.js
@@ -160,6 +160,9 @@ module.exports = function (Categories) {
topics.forEach((topic) => {
if (!topic.scheduled && topic.deleted && !topic.isOwner) {
topic.title = '[[topic:topic_is_deleted]]';
+ if (topic.hasOwnProperty('titleRaw')) {
+ topics.titleRaw = '[[topic:topic_is_deleted]]';
+ }
topic.slug = topic.tid;
topic.teaser = null;
topic.noAnchor = true;