Never ingest another feed's document into a followed podcast

Subscribing from a URL that maps onto an existing podcast only through
an alias or the feed's itunes:new-feed-url claim no longer writes that
document into the podcast: its episodes, metadata and validators stay,
and an unsubscribed podcast is subscribed again with its stored
metadata. The document is ingested only for a new podcast or when it
came from the podcast's own fetch URL.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
sanapachandClaude Opus 5.5 committed 2026-11-20 15:12:52 +02:00
1 parent bbdac75967
commit c5f3b3cfa4
4 files changed
+204 -24

No files matched your search

+9 -4
View File
@@ -304,10 +304,15 @@ Search and subscription from a card (`src/podcasts/search.rs`):
newest 50 episodes of the season, without storing anything; subscribe
fetches the origin URL, then `runner::subscribe_fetched` writes a
private subscription with the card's id, or the account's existing
podcast for the first known URL of `runner::document_urls` (the origin,
the end of a permanent redirect chain, the feed's `itunes:new-feed-url`;
also used by "add RSS"). Nothing is written when the account is already
subscribed, by id or known URL, before or after the fetch. Both share
podcast for a known URL of `runner::document_urls` (the origin, the end
of a permanent redirect chain, the feed's `itunes:new-feed-url`;
`search::known_podcast`; also used by "add RSS"). The document is
ingested only into a new podcast or when it came from the existing
podcast's own fetch URL (requested there, or a permanent redirect ended
there); otherwise the podcast is subscribed again with its stored
metadata and nothing of the document is written. Nothing is written when
the account is already subscribed, by id or known URL, before or after
the fetch. Both share
the "add RSS" request limits; the browser aborts a preview it no longer
shows (`AbortController`), so a closed card frees its slot once the
server sees the connection close.