Fix posting non-polls from mastofe

This commit is contained in:
rinpatch 2019-05-21 14:19:03 +03:00
parent aafe30d94e
commit a53d062730

View file

@ -157,7 +157,7 @@ def make_poll_data(%{"poll" => %{"options" => options, "expires_in" => expires_i
end end
end end
def make_poll_data(%{"poll" => _}) do def make_poll_data(%{"poll" => poll}) when is_map(poll) do
"Invalid poll" "Invalid poll"
end end