Merge pull request #2557 from omnivore-app/fix/rss-deletion

we don't want to update an rss feed page if rss-feeder is tring to re-save it
This commit is contained in:
Hongbo Wu 2023-07-28 14:13:29 +08:00 committed by GitHub
commit 934ae701f8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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