diff --git a/src/posts/summary.js b/src/posts/summary.js index 2274035df4..6c1b6d1958 100644 --- a/src/posts/summary.js +++ b/src/posts/summary.js @@ -124,7 +124,7 @@ module.exports = function (Posts) { return topic && parseInt(topic.cid, 10); }); - cids = _.unique(cids); + cids = _.uniq(cids); categories.getCategoriesFields(cids, ['cid', 'name', 'icon', 'slug', 'parentCid', 'bgColor', 'color'], next); }, diff --git a/src/topics/data.js b/src/topics/data.js index 29ba01a9ef..6c5f970ff9 100644 --- a/src/topics/data.js +++ b/src/topics/data.js @@ -115,7 +115,6 @@ module.exports = function (Topics) { db.setObjectField('topic:' + tid, field, value, callback); }; - Topics.setTopicFields = function (tid, data, callback) { callback = callback || function () {}; db.setObject('topic:' + tid, data, callback);