Whykioh 2283c94a22 Fix remove/mark-watched not working on common-list movies
getLists() returned the common list via MAX(id) grouped across both
users' rows, so the id handed back could belong to either partner.
remove()/markWatched() scope by (id, user_id), so whenever it picked
the partner's id, the query silently matched zero rows while still
reporting success.

Now each user's own is_common=1 rows are returned directly, so the id
is always theirs. Also fixes the frontend never recognizing common
movies as "already added" (see watchgether-web).

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-07-12 21:23:04 +02:00
2026-07-11 09:28:49 +02:00
S
Description
No description provided
124 KiB
Languages
PHP 100%