post summary change

This commit is contained in:
Baris Soner Usakli
2014-03-05 14:52:32 -05:00
parent 76d8d09f9b
commit 976744480f
5 changed files with 17 additions and 19 deletions

View File

@@ -281,11 +281,9 @@ var db = require('./database'),
return callback(null);
}
categories.getCategoryFields(topicData.cid, ['name', 'icon', 'slug'], function(err, categoryData) {
postData.categoryName = categoryData.name;
postData.categoryIcon = categoryData.icon;
postData.categorySlug = categoryData.slug;
postData.title = validator.escape(topicData.title);
postData.topicSlug = topicData.slug;
postData.category = categoryData;
topicData.title = validator.escape(topicData.title);
postData.topic = topicData;
next(null, postData);
});
});