mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-06 14:05:46 +01:00
updated getTopicWithPosts to use a start and end option, and fixed issue with RSS feed saving (issue #256)
This commit is contained in:
@@ -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, {});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user