edited notes: better sql like statement (#7681)

This commit is contained in:
Elian Doran 2025-11-10 20:29:25 +02:00
parent b54765113e
commit 118e11c3fd
No known key found for this signature in database

View File

@ -159,7 +159,7 @@ function getEditedNotesOnDate(req: Request) {
SELECT noteId FROM notes
WHERE
(notes.dateCreated LIKE :date OR notes.dateModified LIKE :date)
AND (noteId NOT LIKE '_%')
AND (notes.noteId NOT LIKE '\\_%' ESCAPE '\\')
UNION ALL
SELECT noteId FROM revisions
WHERE revisions.dateCreated LIKE :date