mirror of
https://git.rape.pet/ulith/amputoma.git
synced 2025-02-24 21:53:59 +01:00
Fix posting non-polls from mastofe
This commit is contained in:
parent
aafe30d94e
commit
a53d062730
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue