Skip to content

Same-show check compares the registrable domain (0.3.2) - #72

Merged
sh1pt-actions-fleet[bot] merged 1 commit into
masterfrom
same-show-domain
Oct 28, 2026
Merged

sh1pt-actions-fleet[bot] merged 1 commit into
masterfrom
same-show-domain

Conversation

@sh1pt-actions-fleet

Copy link
Copy Markdown
Contributor

The same-show check matched title + exact host. The dump stores the registrable domain (libsyn.com), a submitted feed keeps its full host (rss.libsyn.com), so the same show was listed again as <slug>-2 (history-shorts-2, top-floor-2, rpgbot-podcast-2 ...).

  • src/lib/domain.ts: registrableDomain() via tldts (public-suffix aware; private suffixes like github.io keep owners apart).
  • sameShow matches lower(title) and host = d OR host LIKE '%.d' for each registrable domain of the feed and site hosts. ~125 ms on prod, same shape as before.
  • Tests: test/domain.test.mjs; bun test 81 pass, tsc clean.

🤖 Generated with Claude Code

…0.3.2)

rss.libsyn.com and libsyn.com are one host for a show, so a feed submitted
under another subdomain of the same platform was listed a second time as
<slug>-2. sameShow now folds both sides to eTLD+1 with tldts (private
suffixes kept apart, so alice.github.io and bob.github.io never match).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@sh1pt-actions-fleet
sh1pt-actions-fleet Bot merged commit 0d82eeb into master Oct 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant