Fix unknown type attachment

Co-authored-by: Samantaz Fox <coding@samantaz.fr>
pull/3767/head
ChunkyProgrammer 2 years ago committed by GitHub
parent f298e225a1
commit 2d5145614b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -217,11 +217,13 @@ def fetch_channel_community(ucid, continuation, locale, format, thin_mode)
.as(SearchPlaylist)
.to_json(locale, json)
else
json.object do
json.field "type", "unknown"
json.field "error", "Unrecognized attachment type."
end
end
end
end
if comments && (reply_count = (comments["backstageCommentsRenderer"]["moreText"]["simpleText"]? ||
comments["backstageCommentsRenderer"]["moreText"]["runs"]?.try &.[0]?.try &.["text"]?)

Loading…
Cancel
Save