]> cat aescling's git repositories - mastodon.git/commit
Add voters count support (#11917)
authorThibG <thib@sitedethib.com>
Sun, 29 Sep 2019 20:58:01 +0000 (22:58 +0200)
committerEugen Rochko <eugen@zeonfederated.com>
Sun, 29 Sep 2019 20:58:01 +0000 (22:58 +0200)
commit3babf8464b0903b854ec16d355909444ef3ca0bc
treeec5e2bd9217ac2ef69925827ed9c3ca614c31826
parentcfe2d1cc4a3c531741fd769241593ebbe03b6711
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”
13 files changed:
app/javascript/mastodon/components/poll.js
app/lib/activitypub/activity/create.rb
app/lib/activitypub/adapter.rb
app/models/poll.rb
app/serializers/activitypub/note_serializer.rb
app/serializers/rest/poll_serializer.rb
app/services/activitypub/process_poll_service.rb
app/services/post_status_service.rb
app/services/vote_service.rb
app/views/statuses/_poll.html.haml
config/locales/en.yml
db/migrate/20190927232842_add_voters_count_to_polls.rb [new file with mode: 0644]
db/schema.rb