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

@@ -29,7 +29,7 @@ module.exports = function(Topics) {
if (Array.isArray(postData) && !postData.length) {
return callback(null, []);
}
start = parseInt(start, 10);
for(var i=0; i<postData.length; ++i) {
postData[i].index = start + i;
}