Fix posting non-polls from mastofe
This commit is contained in:
джерело
aafe30d94e
коміт
a53d062730
@ -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
|
||||
|
||||
|
Завантаження…
Посилання в новій задачі
Block a user