mirror of
https://gitea.invidious.io/iv-org/invidious-copy-2022-04-11.git
synced 2024-08-15 00:43:26 +00:00
Add fix for unsupported attachment types
This commit is contained in:
parent
aa3c1d930b
commit
47f6fe069a
1 changed files with 6 additions and 1 deletions
|
@ -820,8 +820,13 @@ def fetch_channel_community(ucid, continuation, locale, config, kemal_config, fo
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
else
|
|
||||||
# TODO
|
# TODO
|
||||||
|
# when .has_key?("pollRenderer")
|
||||||
|
# attachment = attachment["pollRenderer"]
|
||||||
|
# json.field "type", "poll"
|
||||||
|
else
|
||||||
|
json.field "type", "unknown"
|
||||||
|
json.field "error", "Unrecognized attachment type."
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue