mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-02-26 16:41:21 +01:00
fix: category RSS feed was displaying deleted topics
This commit is contained in:
@@ -279,6 +279,10 @@ async function generateTopicsFeed(feedOptions, feedTopics) {
|
|||||||
date: new Date(topicData.lastposttime).toUTCString(),
|
date: new Date(topicData.lastposttime).toUTCString(),
|
||||||
};
|
};
|
||||||
|
|
||||||
|
if (topicData.deleted) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (topicData.teaser && topicData.teaser.user && !feedOptions.useMainPost) {
|
if (topicData.teaser && topicData.teaser.user && !feedOptions.useMainPost) {
|
||||||
feedItem.description = topicData.teaser.content;
|
feedItem.description = topicData.teaser.content;
|
||||||
feedItem.author = topicData.teaser.user.username;
|
feedItem.author = topicData.teaser.user.username;
|
||||||
|
|||||||
Reference in New Issue
Block a user