diff options
author | rinpatch <rinpatch@sdf.org> | 2019-05-21 14:19:03 +0300 |
---|---|---|
committer | rinpatch <rinpatch@sdf.org> | 2019-05-21 14:19:03 +0300 |
commit | a53d06273080525fdda332291838b0c95ed69690 (patch) | |
tree | a317a2458a673d61c8743d5f8776cb9b1446513c /lib | |
parent | aafe30d94e68ccf251c56139d07bda154dde3af9 (diff) | |
download | pleroma-a53d06273080525fdda332291838b0c95ed69690.tar.gz |
Fix posting non-polls from mastofe
Diffstat (limited to 'lib')
-rw-r--r-- | lib/pleroma/web/common_api/utils.ex | 2 |
1 files changed, 1 insertions, 1 deletions
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 |