summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChunkyProgrammer <78101139+ChunkyProgrammer@users.noreply.github.com>2023-05-02 21:10:57 -0400
committerGitHub <noreply@github.com>2023-05-02 21:10:57 -0400
commit2d5145614be46c0b59a87c26cecac0c4b69e3437 (patch)
treea586ac3f904a410669c0b261a18f5233cdd8994a
parentf298e225a114578e0551e04d5e68f2bfcbe84e72 (diff)
downloadinvidious-2d5145614be46c0b59a87c26cecac0c4b69e3437.tar.gz
invidious-2d5145614be46c0b59a87c26cecac0c4b69e3437.tar.bz2
invidious-2d5145614be46c0b59a87c26cecac0c4b69e3437.zip
Fix unknown type attachment
Co-authored-by: Samantaz Fox <coding@samantaz.fr>
-rw-r--r--src/invidious/channels/community.cr6
1 files changed, 4 insertions, 2 deletions
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