Fix unknown type attachment

Co-authored-by: Samantaz Fox <coding@samantaz.fr>
This commit is contained in:
ChunkyProgrammer 2023-05-02 21:10:57 -04:00 committed by GitHub
parent f298e225a1
commit 2d5145614b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -217,8 +217,10 @@ def fetch_channel_community(ucid, continuation, locale, format, thin_mode)
.as(SearchPlaylist) .as(SearchPlaylist)
.to_json(locale, json) .to_json(locale, json)
else else
json.field "type", "unknown" json.object do
json.field "error", "Unrecognized attachment type." json.field "type", "unknown"
json.field "error", "Unrecognized attachment type."
end
end end
end end
end end