removed getLatestTids, renamed getPostsByTid removed unused tid param

v1.18.x
barisusakli 10 years ago
parent b292aeea72
commit 2b90568157

@ -6,7 +6,7 @@ var async = require('async'),
module.exports = function(Posts) {
Posts.getPostsByTid = function(tid, set, start, stop, uid, reverse, callback) {
Posts.getPostsFromSet = function(set, start, stop, uid, reverse, callback) {
Posts.getPidsFromSet(set, start, stop, reverse, function(err, pids) {
if (err) {
return callback(err);

@ -28,11 +28,6 @@ module.exports = function(Topics) {
], callback);
};
Topics.getLatestTids = function(start, stop, term, callback) {
winston.warn('[deprecation warning] please use Topics.getLatestTidsFromSet("topics:recent")');
Topics.getLatestTidsFromSet('topics:recent', start, stop, term, callback);
};
Topics.getLatestTidsFromSet = function(set, start, stop, term, callback) {
var since = terms.day;
if (terms[term]) {

Loading…
Cancel
Save