Skip to content

fix: strict title match for submission-to-movie resolution - #48

Open
kuzin wants to merge 1 commit into
mainfrom
claude/sleepy-cannon-eea872
Open

fix: strict title match for submission-to-movie resolution#48
kuzin wants to merge 1 commit into
mainfrom
claude/sleepy-cannon-eea872

Conversation

@kuzin

@kuzin kuzin commented Jul 20, 2026

Copy link
Copy Markdown
Owner

Summary

  • An approved submission for Titanic (1997, tt0120338) was silently reattaching to the Downton Abbey movie page in production, because Downton Abbey's synced synopsis mentions "R.M.S. Titanic."
  • The IMDb-id-miss fallback used across submission → movie resolution (getCatalogMovieByTitleSearch) reused the general catalog full-text search, which matches against movie summaries and sighting text, not just titles. That made an unrelated movie look like "the existing match" for a submission whose title happens to appear in its synopsis.
  • Added a strict, exact-title lookup (getCatalogMovieByExactTitle) and swapped it in at every call site that decides "does this movie already exist in the catalog" (moderation approval flow, synthetic-sighting resolution, moderation dashboard view links, and the public submission duplicate-hint check). getCatalogMovieByTitleSearch itself is untouched — it's still correct for the public search bar.

Test plan

  • yarn lint
  • yarn tsc --noEmit
  • yarn vitest run (235 tests passing, including updated mock in public-sighting-submit.test.ts)
  • yarn build

The IMDb-id-miss fallback reused the general full-text catalog search,
which matches summary/sighting text as well as titles. A movie whose
synced synopsis happened to mention another title's name (e.g. Downton
Abbey's summary references the Titanic) would be treated as "the movie
already exists," silently swallowing approved submissions for the real
movie and reattaching them to the unrelated one.
@vercel

vercel Bot commented Jul 20, 2026

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
whererat-qzb6 Ready Ready Preview, Comment Jul 20, 2026 4:25am

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