mirror of
				https://github.com/iv-org/invidious.git
				synced 2025-11-04 06:31:57 +00:00 
			
		
		
		
	serialized_yt_data: Remove default nil value in to_json
this will ensure that two parameters are passed and that it doesn't collide with 'to_json(builder)'
This commit is contained in:
		@@ -95,7 +95,7 @@ struct SearchVideo
 | 
			
		||||
    end
 | 
			
		||||
  end
 | 
			
		||||
 | 
			
		||||
  def to_json(locale : Hash(String, JSON::Any) | Nil, _json : Nil = nil)
 | 
			
		||||
  def to_json(locale : Hash(String, JSON::Any) | Nil, _json : Nil)
 | 
			
		||||
    JSON.build do |json|
 | 
			
		||||
      to_json(locale, json)
 | 
			
		||||
    end
 | 
			
		||||
@@ -159,7 +159,7 @@ struct SearchPlaylist
 | 
			
		||||
    end
 | 
			
		||||
  end
 | 
			
		||||
 | 
			
		||||
  def to_json(locale : Hash(String, JSON::Any) | Nil, _json : Nil = nil)
 | 
			
		||||
  def to_json(locale : Hash(String, JSON::Any) | Nil, _json : Nil)
 | 
			
		||||
    JSON.build do |json|
 | 
			
		||||
      to_json(locale, json)
 | 
			
		||||
    end
 | 
			
		||||
@@ -211,7 +211,7 @@ struct SearchChannel
 | 
			
		||||
    end
 | 
			
		||||
  end
 | 
			
		||||
 | 
			
		||||
  def to_json(locale, _json : Nil = nil)
 | 
			
		||||
  def to_json(locale, _json : Nil)
 | 
			
		||||
    JSON.build do |json|
 | 
			
		||||
      to_json(locale, json)
 | 
			
		||||
    end
 | 
			
		||||
@@ -245,7 +245,7 @@ class Category
 | 
			
		||||
    end
 | 
			
		||||
  end
 | 
			
		||||
 | 
			
		||||
  def to_json(locale : Hash(String, JSON::Any) | Nil, _json : Nil = nil)
 | 
			
		||||
  def to_json(locale : Hash(String, JSON::Any) | Nil, _json : Nil)
 | 
			
		||||
    JSON.build do |json|
 | 
			
		||||
      to_json(locale, json)
 | 
			
		||||
    end
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user