diff options
author | lain <lain@soykaf.club> | 2020-11-04 10:14:00 +0100 |
---|---|---|
committer | lain <lain@soykaf.club> | 2020-11-04 10:14:00 +0100 |
commit | 1cfc3278c086c9eaa7b2d1bd170e82c8b2aebd78 (patch) | |
tree | dfd26f5f74ca9a219b95f077053fa639435287a2 /lib | |
parent | ba3f3a5a56d4a5ac05443fd30b5864778ad1131e (diff) | |
download | pleroma-1cfc3278c086c9eaa7b2d1bd170e82c8b2aebd78.tar.gz |
Poll View: Always return `voters_count`.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/pleroma/web/mastodon_api/views/poll_view.ex | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pleroma/web/mastodon_api/views/poll_view.ex b/lib/pleroma/web/mastodon_api/views/poll_view.ex index 1208dc9a0..4101f21d0 100644 --- a/lib/pleroma/web/mastodon_api/views/poll_view.ex +++ b/lib/pleroma/web/mastodon_api/views/poll_view.ex @@ -19,7 +19,7 @@ defmodule Pleroma.Web.MastodonAPI.PollView do expired: expired, multiple: multiple, votes_count: votes_count, - voters_count: (multiple || nil) && voters_count(object), + voters_count: voters_count(object), options: options, voted: voted?(params), emojis: Pleroma.Web.MastodonAPI.StatusView.build_emojis(object.data["emoji"]) |