From: rinpatch Date: Tue, 21 May 2019 11:19:03 +0000 (+0300) Subject: Fix posting non-polls from mastofe X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=a53d06273080525fdda332291838b0c95ed69690;p=akkoma Fix posting non-polls from mastofe --- diff --git a/lib/pleroma/web/common_api/utils.ex b/lib/pleroma/web/common_api/utils.ex index 97172fd94..66153a105 100644 --- a/lib/pleroma/web/common_api/utils.ex +++ b/lib/pleroma/web/common_api/utils.ex @@ -157,7 +157,7 @@ defmodule Pleroma.Web.CommonAPI.Utils do end end - def make_poll_data(%{"poll" => _}) do + def make_poll_data(%{"poll" => poll}) when is_map(poll) do "Invalid poll" end