updates to posts

This commit is contained in:
psychobunny
2013-04-28 20:07:42 +00:00
parent b0e510c862
commit 126f817f7d
5 changed files with 59 additions and 12 deletions

View File

@@ -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;