From 96232676cb9f217212e531a913f66436527b7031 Mon Sep 17 00:00:00 2001 From: advplyr Date: Fri, 27 May 2022 17:50:56 -0500 Subject: [PATCH] Fix:Save RSS feed url passed in by user instead of using the RSS feed returned from the request #634 --- server/controllers/PodcastController.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/server/controllers/PodcastController.js b/server/controllers/PodcastController.js index a0f14eda..41ab8f11 100644 --- a/server/controllers/PodcastController.js +++ b/server/controllers/PodcastController.js @@ -109,10 +109,8 @@ class PodcastController { return res.status(500).send('Invalid podcast RSS feed') } - if (!payload.podcast.metadata.feedUrl) { - // Not every RSS feed will put the feed url in their metadata - payload.podcast.metadata.feedUrl = url - } + // RSS feed may be a private RSS feed + payload.podcast.metadata.feedUrl = url res.json(payload) }).catch((error) => {