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:
parent
7b4d0db96d
commit
65cf25e0ff
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user