fix count of poll voters
ci/woodpecker/push/woodpecker Pipeline is pending Details

This commit is contained in:
FloatingGhost 2022-11-08 13:50:04 +00:00
parent 2e895b6c02
commit 4e8ab0deeb
1 changed files with 1 additions and 1 deletions

View File

@ -68,7 +68,7 @@ defmodule Pleroma.Web.MastodonAPI.PollView do
end)
end
defp voters_count(%{data: %{"voters" => [_ | _] = voters}}) do
defp voters_count(%{data: %{"voters" => voters}}) when is_list(voters) do
length(voters)
end