diff --git a/src/categories.js b/src/categories.js index 68f7b65e5b..989d9efcb1 100644 --- a/src/categories.js +++ b/src/categories.js @@ -133,7 +133,7 @@ var RDB = require('./redis.js'), } function getTeaserInfo(next) { - topics.get_teaser(topicData.tid, function(teaser) { + topics.getTeaser(topicData.tid, function(teaser) { next(null, teaser); }); } diff --git a/src/threadTools.js b/src/threadTools.js index e3c0cb49e8..c424564ace 100644 --- a/src/threadTools.js +++ b/src/threadTools.js @@ -235,7 +235,7 @@ var RDB = require('./redis.js'), function(next) { topics.getTopicField(tid, 'title', function(title) { - topics.get_teaser(tid, function(teaser) { + topics.getTeaser(tid, function(teaser) { notifications.create(teaser.username + ' has posted a reply to: "' + title + '"', null, '/topic/' + tid, 'topic:' + tid, function(nid) { next(null, nid); }); diff --git a/src/topics.js b/src/topics.js index ec8a91acc7..23e7dc3e08 100644 --- a/src/topics.js +++ b/src/topics.js @@ -132,13 +132,13 @@ marked.setOptions({ Topics.getTopicForCategoryView = function(tid, uid, callback) { - function get_topic_data(next) { + function getTopicData(next) { Topics.getTopicDataWithUsername(tid, function(topic) { next(null, topic); }); } - function get_read_status(next) { + function getReadStatus(next) { // posts.create calls this function - should be an option to skip this because its always true if (uid && parseInt(uid) > 0) { RDB.sismember(schema.topics(tid).read_by_uid, uid, function(err, read) { @@ -149,13 +149,13 @@ marked.setOptions({ } } - function get_teaser(next) { - Topics.get_teaser(tid, function(teaser) { + function getTeaser(next) { + Topics.getTeaser(tid, function(teaser) { next(null, teaser); }); } - async.parallel([get_topic_data, get_read_status, get_teaser], function(err, results) { + async.parallel([getTopicData, getReadStatus, getTeaser], function(err, results) { if (err) { throw new Error(err); } @@ -242,13 +242,13 @@ marked.setOptions({ }); } - Topics.get_teasers = function(tids, callback) { + Topics.getTeasers = function(tids, callback) { var requests = []; if (Array.isArray(tids)) { for(x=0,numTids=tids.length;x