mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-01-28 18:29:50 +01:00
dont show same topic in suggested
This commit is contained in:
@@ -101,7 +101,7 @@ module.exports = function (Topics) {
|
||||
},
|
||||
function (data, next) {
|
||||
var tids = data.topics.filter(function (topic) {
|
||||
return topic && !topic.deleted;
|
||||
return topic && !topic.deleted && parseInt(tid, 10) !== parseInt(topic.tid, 10);
|
||||
}).map(function (topic) {
|
||||
return topic && parseInt(topic.tid, 10);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user