mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-02 20:16:04 +01:00
updates to posts
This commit is contained in:
@@ -23,12 +23,12 @@ var RDB = require('./redis.js'),
|
||||
|
||||
|
||||
Topics.generate_topic_body = function(callback, tid, start, end) {
|
||||
if (start == null) start = 0;
|
||||
if (end == null) end = start + 10;
|
||||
|
||||
RDB.lrange('tid:' + tid + ':posts', start, end, function(tids) {
|
||||
callback(tids);
|
||||
});
|
||||
var topic_body = global.templates['topic'];
|
||||
|
||||
posts.get(function(data) {
|
||||
topic_body = topic_body.parse(data);
|
||||
callback(topic_body);
|
||||
}, tid, start, end)
|
||||
};
|
||||
|
||||
// this needs to move into forum.js
|
||||
@@ -42,10 +42,6 @@ var RDB = require('./redis.js'),
|
||||
}, start, end);
|
||||
};
|
||||
|
||||
Topics.get_postIDs_by_topicID = function(topicID, start, end) {
|
||||
|
||||
};
|
||||
|
||||
Topics.get = function(callback, start, end) {
|
||||
if (start == null) start = 0;
|
||||
if (end == null) end = start + 10;
|
||||
|
||||
Reference in New Issue
Block a user