From ae02c1a06ca57ba2f7d32dce2bcf6642a627a783 Mon Sep 17 00:00:00 2001 From: barisusakli Date: Wed, 10 Sep 2014 18:48:43 -0400 Subject: [PATCH] closes #2068 --- src/posts.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/posts.js b/src/posts.js index 53a11e9d6b..856145c4c0 100644 --- a/src/posts.js +++ b/src/posts.js @@ -357,7 +357,7 @@ var async = require('async'), } posts = posts.filter(function(post) { - return parseInt(results.topics[post.tid].deleted, 10) !== 1; + return results.topics[post.tid] && parseInt(results.topics[post.tid].deleted, 10) !== 1; }); async.map(posts, function(post, next) {