check if the page is from rss feed

This commit is contained in:
Hongbo Wu 2023-07-28 13:53:19 +08:00
parent 9bc7ed92c0
commit f20e12311a

View file

@ -142,7 +142,10 @@ export const savePage = async (
})
if (existingPage) {
// we don't want to update an rss feed page if rss-feeder is tring to re-save it
if (existingPage.rssFeedUrl === input.rssFeedUrl) {
if (
existingPage.rssFeedUrl &&
existingPage.rssFeedUrl === input.rssFeedUrl
) {
return {
clientRequestId: pageId,
url: `${homePageURL()}/${saver.username}/${slug}`,