Fixed entries being incorrectly marked as duplicates when tracked with some trackers (#4008)

If a tracker doesn't set `remote_id`, it defaults to 0 so comparing entries based on `remote_id` when it's 0 doesn't make sense
This commit is contained in:
Secozzi
2026-09-26 22:53:32 +06:00
committed by GitHub
parent f52d890e7f
commit 532575e29e
2 changed files with 2 additions and 0 deletions
@@ -126,6 +126,7 @@ track_dupes AS (
INNER JOIN manga_sync S2
ON S1.sync_id = S2.sync_id
AND S1.remote_id = S2.remote_id
AND S1.remote_id != 0
AND S1.manga_id != S2.manga_id
WHERE S1.manga_id = :id
),