changed post links to "topic/<topic_id>/<topic_slug>/<post_id>"
This commit is contained in:
barisusakli
2014-06-02 17:31:09 -04:00
parent 46028e49f7
commit 55dbc5c823
10 changed files with 122 additions and 84 deletions

View File

@@ -274,6 +274,9 @@ var db = require('./database'),
}
postTools.parse(post.content, next);
},
index: function(next) {
Posts.getPidIndex(post.pid, next);
}
}, function(err, results) {
if (err) {
@@ -283,6 +286,7 @@ var db = require('./database'),
post.user = results.user;
post.topic = results.topicCategory.topic;
post.category = results.topicCategory.category;
post.index = parseInt(results.index, 10) + 1;
if (stripTags) {
var s = S(results.content);