projects
/
akkoma
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
aafe30d
)
Fix posting non-polls from mastofe
author
rinpatch
<rinpatch@sdf.org>
Tue, 21 May 2019 11:19:03 +0000
(14:19 +0300)
committer
rinpatch
<rinpatch@sdf.org>
Tue, 21 May 2019 11:19:03 +0000
(14:19 +0300)
lib/pleroma/web/common_api/utils.ex
patch
|
blob
|
history
diff --git
a/lib/pleroma/web/common_api/utils.ex
b/lib/pleroma/web/common_api/utils.ex
index 97172fd941aa4fd09e74fe7579f9d8e39f85c570..66153a105e2e6f987062f5e11344a12c8230d1f5 100644
(file)
--- 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