Search: Fix 'youtu.be' URLs in sanitizer (#4894)

Use the proper URL argument when transforming youtu.be URLs to their
youtube.com equivalents.

Thanks to Tuhgy on the fediverse for reporting this!

No related issue
This commit is contained in:
Samantaz Fox 2024-10-08 18:03:56 +02:00
commit d5f5490aee
No known key found for this signature in database
GPG Key ID: F42821059186176E

View File

@ -111,7 +111,7 @@ module UrlSanitizer
new_uri.path = "/watch"
new_params = copy_params(unsafe_uri.query_params, :watch)
new_params["id"] = breadcrumbs[0]
new_params["v"] = breadcrumbs[0]
new_uri.query_params = new_params
end