瀏覽代碼

Fix posting non-polls from mastofe

tags/v1.1.4
rinpatch 5 年之前
父節點
當前提交
a53d062730
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. +1
    -1
      lib/pleroma/web/common_api/utils.ex

+ 1
- 1
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



Loading…
取消
儲存