diff options
| author | ChunkyProgrammer <78101139+ChunkyProgrammer@users.noreply.github.com> | 2023-05-02 21:10:57 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-05-02 21:10:57 -0400 |
| commit | 2d5145614be46c0b59a87c26cecac0c4b69e3437 (patch) | |
| tree | a586ac3f904a410669c0b261a18f5233cdd8994a /src | |
| parent | f298e225a114578e0551e04d5e68f2bfcbe84e72 (diff) | |
| download | invidious-2d5145614be46c0b59a87c26cecac0c4b69e3437.tar.gz invidious-2d5145614be46c0b59a87c26cecac0c4b69e3437.tar.bz2 invidious-2d5145614be46c0b59a87c26cecac0c4b69e3437.zip | |
Fix unknown type attachment
Co-authored-by: Samantaz Fox <coding@samantaz.fr>
Diffstat (limited to 'src')
| -rw-r--r-- | src/invidious/channels/community.cr | 6 |
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 |
