From be96704d5dbe9c477e5899947f84c769c3883900 Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Fri, 26 Aug 2016 15:56:11 -0400 Subject: [PATCH] possible fix for #4981 --- src/posts/summary.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/posts/summary.js b/src/posts/summary.js index e3e948c292..b4012aada0 100644 --- a/src/posts/summary.js +++ b/src/posts/summary.js @@ -121,7 +121,7 @@ module.exports = function(Posts) { var cids = topics.map(function(topic) { if (topic) { - topic.title = validator.escape(topic.title); + topic.title = validator.escape(topic.title || ''); topic.deleted = parseInt(topic.deleted, 10) === 1; } return topic && topic.cid;