mirror of
				https://github.com/iv-org/invidious.git
				synced 2025-11-03 22:21:55 +00:00 
			
		
		
		
	Fix for #3096
This commit is contained in:
		@@ -567,6 +567,10 @@ end
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
def content_to_comment_html(content, video_id : String? = "")
 | 
					def content_to_comment_html(content, video_id : String? = "")
 | 
				
			||||||
  html_array = content.map do |run|
 | 
					  html_array = content.map do |run|
 | 
				
			||||||
 | 
					    # Sometimes, there is an empty element.
 | 
				
			||||||
 | 
					    # See: https://github.com/iv-org/invidious/issues/3096
 | 
				
			||||||
 | 
					    next if run.as_h.empty?
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    text = HTML.escape(run["text"].as_s)
 | 
					    text = HTML.escape(run["text"].as_s)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    if run["navigationEndpoint"]?
 | 
					    if run["navigationEndpoint"]?
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user