Fix credo issues

This commit is contained in:
rinpatch 2019-05-22 21:57:46 +03:00
parent ac7702f800
commit e6b175ed6c

View File

@ -357,7 +357,8 @@ def render("poll.json", %{object: object} = _opts) do
end) end)
%{ %{
# Mastodon uses separate ids for polls, but an object can't have more than one poll embedded so object id is fine # Mastodon uses separate ids for polls, but an object can't have
# more than one poll embedded so object id is fine
id: object.id, id: object.id,
expires_at: Utils.to_masto_date(end_time), expires_at: Utils.to_masto_date(end_time),
expired: expired, expired: expired,