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

@@ -110,7 +110,7 @@ var user = require('./../user.js'),
app.get('/api/topic/:id/:slug?', function(req, res, next) {
var uid = (req.user) ? req.user.uid : 0;
topics.getTopicWithPosts(req.params.id, uid, function(err, data) {
topics.getTopicWithPosts(req.params.id, uid, 0, 10, function(err, data) {
if(data.deleted === '1' && data.expose_tools === 0) {
return res.json(404, {});
}