mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-01 19:46:01 +01:00
recent posts done (needs polish/cleanup), and fixed bug where new topic button was not showing up in categories
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user