mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
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:
commit
934ae701f8
1 changed files with 11 additions and 0 deletions
|
|
@ -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 (
|
||||
|
|
|
|||
Loading…
Reference in a new issue