From 47f6fe069ad5f807fe21b5a6be9fb76f2fb48d9a Mon Sep 17 00:00:00 2001 From: Omar Roth Date: Tue, 9 Jul 2019 11:54:04 -0500 Subject: [PATCH] Add fix for unsupported attachment types --- src/invidious/channels.cr | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/invidious/channels.cr b/src/invidious/channels.cr index b5f2eb04..858fbded 100644 --- a/src/invidious/channels.cr +++ b/src/invidious/channels.cr @@ -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