aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorrinpatch <rinpatch@sdf.org>2019-05-21 14:19:03 +0300
committerrinpatch <rinpatch@sdf.org>2019-05-21 14:19:03 +0300
commita53d06273080525fdda332291838b0c95ed69690 (patch)
treea317a2458a673d61c8743d5f8776cb9b1446513c /lib
parentaafe30d94e68ccf251c56139d07bda154dde3af9 (diff)
downloadpleroma-a53d06273080525fdda332291838b0c95ed69690.tar.gz
Fix posting non-polls from mastofe
Diffstat (limited to 'lib')
-rw-r--r--lib/pleroma/web/common_api/utils.ex2
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