mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 16:46:12 +01:00
fix: dont show deleted topics in digest
This commit is contained in:
@@ -131,5 +131,5 @@ async function getTermTopics(term, uid, start, stop) {
|
|||||||
topicObj.teaser.content = topicObj.teaser.content.slice(0, 255) + '...';
|
topicObj.teaser.content = topicObj.teaser.content.slice(0, 255) + '...';
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
return data.topics;
|
return data.topics.filter(topic => topic && !topic.deleted);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user