1
0
mirror of https://gitlab.com/Cha_deL/peertubeify synced 2024-12-21 20:34:23 +01:00

Make search case-insensitive

This commit is contained in:
Ealhad 2018-11-09 17:08:37 +01:00
parent 7b4d0db96d
commit 65cf25e0ff

View File

@ -30,7 +30,7 @@ const searchByName = query => new Promise(async (resolve, reject) => {
.then(function(data) {
if (data.total > 0) {
const video = data.data[0]
if (video.name === query) {
if (_.toLower(video.name) === _.toLower(query)) {
resolve(video);
}
}