mirror of
				https://github.com/iv-org/invidious.git
				synced 2025-10-31 20:51:56 +00:00 
			
		
		
		
	Add fix for unsupported attachment types
This commit is contained in:
		| @@ -820,8 +820,13 @@ def fetch_channel_community(ucid, continuation, locale, config, kemal_config, fo | ||||
|                           end | ||||
|                         end | ||||
|                       end | ||||
|                     else | ||||
|                       # TODO | ||||
|                       # when .has_key?("pollRenderer") | ||||
|                       #   attachment = attachment["pollRenderer"] | ||||
|                       #   json.field "type", "poll" | ||||
|                     else | ||||
|                       json.field "type", "unknown" | ||||
|                       json.field "error", "Unrecognized attachment type." | ||||
|                     end | ||||
|                   end | ||||
|                 end | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Omar Roth
					Omar Roth