Node.js based forum software built for the modern web
Don't return data for Topics.updateRecent
Timothy Fike9fdd1b6b7070
diff --git a/src/topics/recent.js b/src/topics/recent.jsindex f2961f9b22..8440b3e4a6 100644--- a/src/topics/recent.js+++ b/src/topics/recent.js@@ -65,7 +65,10 @@ module.exports = function(Topics) {Topics.updateRecent = function(tid, timestamp, callback) {callback = callback || function() {};if (plugins.hasListeners('filter:topics.updateRecent')) {- plugins.fireHook('filter:topics.updateRecent', {tid: tid, timestamp: timestamp}, callback);+ plugins.fireHook('filter:topics.updateRecent', {tid: tid, timestamp: timestamp}, function(err, data) {+ if (data && data.tid && data.timestamp) db.sortedSetAdd('topics:recent', data.timestamp, data.tid);+ callback(err);+ });} else {db.sortedSetAdd('topics:recent', timestamp, tid, callback);}