diff options
author | Chocobozzz <me@florianbigard.com> | 2019-12-27 08:49:31 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2019-12-27 08:51:26 +0100 |
commit | 227eb02f9ac100e1314cab4c4751e450bbe14d21 (patch) | |
tree | 54871f58646e68fd0a0ce7912974538486aa4e26 /server/models/video/video.ts | |
parent | bc584963ff0e0e8ad16fdd08c0fce5900fac0630 (diff) | |
download | PeerTube-227eb02f9ac100e1314cab4c4751e450bbe14d21.tar.gz PeerTube-227eb02f9ac100e1314cab4c4751e450bbe14d21.tar.zst PeerTube-227eb02f9ac100e1314cab4c4751e450bbe14d21.zip |
Case insensitive tags search
Diffstat (limited to 'server/models/video/video.ts')
-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 | } |