Skip to content

Invidious is an alternative front-end to YouTube

Fix unknown type attachment

ChunkyProgrammer2d5145614be4
diff --git a/src/invidious/channels/community.cr b/src/invidious/channels/community.cr
index 87430305..2c7b9fec 100644
--- a/src/invidious/channels/community.cr
+++ b/src/invidious/channels/community.cr
@@ -217,8 +217,10 @@ def fetch_channel_community(ucid, continuation, locale, format, thin_mode)
.as(SearchPlaylist)
.to_json(locale, json)
else
- json.field "type", "unknown"
- json.field "error", "Unrecognized attachment type."
+ json.object do
+ json.field "type", "unknown"
+ json.field "error", "Unrecognized attachment type."
+ end
end
end
end