|
|
@ -45,6 +45,7 @@ var path = require('path'),
|
|
|
|
var topicUrls = [];
|
|
|
|
var topicUrls = [];
|
|
|
|
topics.getAllTopics(null, null, function(err, topics) {
|
|
|
|
topics.getAllTopics(null, null, function(err, topics) {
|
|
|
|
topics.forEach(function(topic) {
|
|
|
|
topics.forEach(function(topic) {
|
|
|
|
|
|
|
|
|
|
|
|
if (parseInt(topic.deleted, 10) !== 1) {
|
|
|
|
if (parseInt(topic.deleted, 10) !== 1) {
|
|
|
|
topicUrls.push({
|
|
|
|
topicUrls.push({
|
|
|
|
url: path.join('topic', topic.slug),
|
|
|
|
url: path.join('topic', topic.slug),
|
|
|
|