From 1cb715ac9f102c74b6611dae703c5a45e7cae94a Mon Sep 17 00:00:00 2001 From: Samantaz Fox Date: Thu, 7 Oct 2021 22:53:00 +0200 Subject: [PATCH] serialized_yt_data: force datatype of 'locale' --- src/invidious/helpers/serialized_yt_data.cr | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/invidious/helpers/serialized_yt_data.cr b/src/invidious/helpers/serialized_yt_data.cr index bc8fc946..d4f5da87 100644 --- a/src/invidious/helpers/serialized_yt_data.cr +++ b/src/invidious/helpers/serialized_yt_data.cr @@ -211,7 +211,7 @@ struct SearchChannel end end - def to_json(locale, _json : Nil) + def to_json(locale : Hash(String, JSON::Any) | Nil, _json : Nil) JSON.build do |json| to_json(locale, json) end