Case insensitive tags search

pull/2349/head
Chocobozzz 2019-12-27 08:49:31 +01:00
parent bc584963ff
commit 227eb02f9a
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
1 changed files with 1 additions and 1 deletions

View File

@ -1371,7 +1371,7 @@ export class VideoModel extends Model<VideoModel> {
'UNION ALL ' +
'SELECT "video"."id" FROM "video" LEFT JOIN "videoTag" ON "videoTag"."videoId" = "video"."id" ' +
'INNER JOIN "tag" ON "tag"."id" = "videoTag"."tagId" ' +
'WHERE "tag"."name" = ' + escapedSearch +
'WHERE lower("tag"."name") = lower(' + escapedSearch + ')' +
')'
)
}