mirror of
https://github.com/mihonapp/mihon.git
synced 2026-10-16 13:48:09 -07:00
Don't match every library entry as a duplicate of a blank title (#3308)
Closes #3308 Co-authored-by: NarwhalHorns <onefailedgamer@gamil.com>
This commit is contained in:
co-authored by
NarwhalHorns
parent
8c0419657b
commit
40f552981a
@@ -130,7 +130,11 @@ SELECT
|
||||
FROM manga M
|
||||
WHERE M.user_favorite_at IS NOT NULL
|
||||
AND M.id != :id
|
||||
AND (lower(M.remote_title) LIKE '%' || lower(:remoteTitle) || '%' OR M.id IN (SELECT manga_id FROM track_dupes));
|
||||
-- A blank title would match every title
|
||||
AND (
|
||||
(trim(:remoteTitle) != '' AND lower(M.remote_title) LIKE '%' || lower(:remoteTitle) || '%')
|
||||
OR M.id IN (SELECT manga_id FROM track_dupes)
|
||||
);
|
||||
|
||||
getUpcomingManga:
|
||||
SELECT
|
||||
|
||||
Reference in New Issue
Block a user