mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-10 16:05:49 +01:00
fixing issue where NodeBB hangs if a non-existant topic was requested
This commit is contained in:
@@ -29,7 +29,9 @@
|
||||
Feed.updateTopic = function(tid, cid) {
|
||||
var cache_time_in_seconds = 60;
|
||||
|
||||
topics.getTopicWithPosts(tid, 0, function(topicData) {
|
||||
topics.getTopicWithPosts(tid, 0, function(err, topicData) {
|
||||
if (err) console.log('Error: Problem saving topic RSS feed', err);
|
||||
|
||||
var location = '/topic/' + topicData.slug,
|
||||
xml_url = '/topic/' + tid + '.rss';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user