Add fix for unsupported attachment types

This commit is contained in:
Omar Roth 2019-07-09 11:54:04 -05:00
parent aa3c1d930b
commit 47f6fe069a
No known key found for this signature in database
GPG key ID: B8254FB7EC3D37F2

View file

@ -820,8 +820,13 @@ def fetch_channel_community(ucid, continuation, locale, config, kemal_config, fo
end
end
end
else
# 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