chore: removed unused locale argument in #get_about_info function (#5902)

This commit is contained in:
Fijxu authored and GitHub committed 2026-08-17 01:49:17 -04:00
1 parent d10f2a4802
commit 821365cf71
3 files changed
+3 -3

No files matched your search

+1 -1
View File
@@ -19,7 +19,7 @@ record AboutChannel,
verified : Bool, verified : Bool,
is_age_gated : Bool is_age_gated : Bool
def get_about_info(ucid, locale) : AboutChannel def get_about_info(ucid) : AboutChannel
begin begin
# Fetch channel information from channel home page # Fetch channel information from channel home page
initdata = YoutubeAPI.browse(browse_id: ucid, params: "") initdata = YoutubeAPI.browse(browse_id: ucid, params: "")
+1 -1
View File
@@ -3,7 +3,7 @@ module Invidious::Routes::API::V1::Channels
# This sets the `channel` variable, or handles Exceptions. # This sets the `channel` variable, or handles Exceptions.
private macro get_channel private macro get_channel
begin begin
channel = get_about_info(ucid, locale) channel = get_about_info(ucid)
rescue ex : ChannelRedirect rescue ex : ChannelRedirect
env.response.headers["Location"] = env.request.resource.gsub(ucid, ex.channel_id) env.response.headers["Location"] = env.request.resource.gsub(ucid, ex.channel_id)
return error_json(302, "Channel is unavailable", {"authorId" => ex.channel_id}) return error_json(302, "Channel is unavailable", {"authorId" => ex.channel_id})
+1 -1
View File
@@ -433,7 +433,7 @@ module Invidious::Routes::Channels
continuation = env.params.query["continuation"]? continuation = env.params.query["continuation"]?
begin begin
channel = get_about_info(ucid, locale) channel = get_about_info(ucid)
rescue ex : ChannelRedirect rescue ex : ChannelRedirect
return env.redirect env.request.resource.gsub(ucid, ex.channel_id) return env.redirect env.request.resource.gsub(ucid, ex.channel_id)
rescue ex : NotFoundException rescue ex : NotFoundException