mirror of
https://gitlab.com/Cha_deL/peertubeify
synced 2025-02-16 11:30:57 +01:00
Make search case-insensitive
This commit is contained in:
parent
7b4d0db96d
commit
65cf25e0ff
@ -30,7 +30,7 @@ const searchByName = query => new Promise(async (resolve, reject) => {
|
|||||||
.then(function(data) {
|
.then(function(data) {
|
||||||
if (data.total > 0) {
|
if (data.total > 0) {
|
||||||
const video = data.data[0]
|
const video = data.data[0]
|
||||||
if (video.name === query) {
|
if (_.toLower(video.name) === _.toLower(query)) {
|
||||||
resolve(video);
|
resolve(video);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user