diff options
author | ThibG <thib@sitedethib.com> | 2019-09-29 22:58:01 +0200 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2019-09-29 22:58:01 +0200 |
commit | 3babf8464b0903b854ec16d355909444ef3ca0bc (patch) | |
tree | ec5e2bd9217ac2ef69925827ed9c3ca614c31826 /app/serializers/rest | |
parent | cfe2d1cc4a3c531741fd769241593ebbe03b6711 (diff) |
Add voters count support (#11917)
* Add voters count to polls * Add ActivityPub serialization and parsing of voters count * Add support for voters count in WebUI * Move incrementation of voters count out of redis lock * Reword “voters” to “people”
Diffstat (limited to 'app/serializers/rest')
-rw-r--r-- | app/serializers/rest/poll_serializer.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/serializers/rest/poll_serializer.rb b/app/serializers/rest/poll_serializer.rb index eb98bb2d2..df6ebd0d4 100644 --- a/app/serializers/rest/poll_serializer.rb +++ b/app/serializers/rest/poll_serializer.rb @@ -2,7 +2,7 @@ class REST::PollSerializer < ActiveModel::Serializer attributes :id, :expires_at, :expired, - :multiple, :votes_count + :multiple, :votes_count, :voters_count has_many :loaded_options, key: :options has_many :emojis, serializer: REST::CustomEmojiSerializer |