projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge pull request 'Add /api/v1/followed_tags' (#410) from followed-tags into develop
[akkoma]
/
lib
/
pleroma
/
web
/
mastodon_api
/
views
/
poll_view.ex
diff --git
a/lib/pleroma/web/mastodon_api/views/poll_view.ex
b/lib/pleroma/web/mastodon_api/views/poll_view.ex
index 71bc8b949229f3f0bd8c3f6a66a7af8b9c613b21..aa6443754f1b31ac440159b2aae02fd6a2d2fe70 100644
(file)
--- a/
lib/pleroma/web/mastodon_api/views/poll_view.ex
+++ b/
lib/pleroma/web/mastodon_api/views/poll_view.ex
@@
-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