updated getTopicWithPosts to use a start and end option, and fixed issue with RSS feed saving (issue #256)

This commit is contained in:
Julian Lam
2013-09-03 13:11:21 -04:00
parent 9fae0d2505
commit 02a02fa64c
4 changed files with 15 additions and 11 deletions

View File

@@ -225,7 +225,7 @@ var express = require('express'),
async.waterfall([
function(next) {
topics.getTopicWithPosts(tid, ((req.user) ? req.user.uid : 0), function(err, topicData) {
topics.getTopicWithPosts(tid, ((req.user) ? req.user.uid : 0), 0, -1, function(err, topicData) {
if(topicData) {
if(topicData.deleted === '1' && topicData.expose_tools === 0)
return next(new Error('Topic deleted'), null);