diff options
-rw-r--r-- | server/models/video/video.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/models/video/video.ts b/server/models/video/video.ts index 990c66907..164122ee2 100644 --- a/server/models/video/video.ts +++ b/server/models/video/video.ts | |||
@@ -1371,7 +1371,7 @@ export class VideoModel extends Model<VideoModel> { | |||
1371 | 'UNION ALL ' + | 1371 | 'UNION ALL ' + |
1372 | 'SELECT "video"."id" FROM "video" LEFT JOIN "videoTag" ON "videoTag"."videoId" = "video"."id" ' + | 1372 | 'SELECT "video"."id" FROM "video" LEFT JOIN "videoTag" ON "videoTag"."videoId" = "video"."id" ' + |
1373 | 'INNER JOIN "tag" ON "tag"."id" = "videoTag"."tagId" ' + | 1373 | 'INNER JOIN "tag" ON "tag"."id" = "videoTag"."tagId" ' + |
1374 | 'WHERE "tag"."name" = ' + escapedSearch + | 1374 | 'WHERE lower("tag"."name") = lower(' + escapedSearch + ')' + |
1375 | ')' | 1375 | ')' |
1376 | ) | 1376 | ) |
1377 | } | 1377 | } |