mirror of
https://github.com/jtomchak/akkoma.git
synced 2025-01-31 11:59:10 +01:00
fix count of poll voters
This commit is contained in:
parent
2e895b6c02
commit
4e8ab0deeb
1 changed files with 1 additions and 1 deletions
|
@ -68,7 +68,7 @@ defmodule Pleroma.Web.MastodonAPI.PollView do
|
||||||
end)
|
end)
|
||||||
end
|
end
|
||||||
|
|
||||||
defp voters_count(%{data: %{"voters" => [_ | _] = voters}}) do
|
defp voters_count(%{data: %{"voters" => voters}}) when is_list(voters) do
|
||||||
length(voters)
|
length(voters)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue