recent posts done (needs polish/cleanup), and fixed bug where new topic button was not showing up in categories

This commit is contained in:
psychobunny
2013-05-23 17:38:49 -04:00
parent 6acc07920e
commit 4b67f8573e
3 changed files with 27 additions and 11 deletions

View File

@@ -183,17 +183,12 @@ var express = require('express'),
}, req.params.id, (req.user) ? req.user.uid : 0);
break;
case 'latest' :
categories.get(function(data) {
if(!data) {
res.send(false);
return;
}
categories.getLatestTopics((req.user) ? req.user.uid : 0, 0, 9, function(data) {
res.send(JSON.stringify(data));
});
break;
case 'popular' :
categories.get(function(data) {
console.log(data);
if(!data) {
res.send(false);
return;