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”
Showing
- app/javascript/mastodon/components/poll.js 14 additions, 5 deletionsapp/javascript/mastodon/components/poll.js
- app/lib/activitypub/activity/create.rb 35 additions, 5 deletionsapp/lib/activitypub/activity/create.rb
- app/lib/activitypub/adapter.rb 1 addition, 0 deletionsapp/lib/activitypub/adapter.rb
- app/models/poll.rb 1 addition, 0 deletionsapp/models/poll.rb
- app/serializers/activitypub/note_serializer.rb 11 additions, 1 deletionapp/serializers/activitypub/note_serializer.rb
- app/serializers/rest/poll_serializer.rb 1 addition, 1 deletionapp/serializers/rest/poll_serializer.rb
- app/services/activitypub/process_poll_service.rb 4 additions, 1 deletionapp/services/activitypub/process_poll_service.rb
- app/services/post_status_service.rb 1 addition, 1 deletionapp/services/post_status_service.rb
- app/services/vote_service.rb 29 additions, 3 deletionsapp/services/vote_service.rb
- app/views/statuses/_poll.html.haml 6 additions, 2 deletionsapp/views/statuses/_poll.html.haml
- config/locales/en.yml 3 additions, 0 deletionsconfig/locales/en.yml
- db/migrate/20190927232842_add_voters_count_to_polls.rb 5 additions, 0 deletionsdb/migrate/20190927232842_add_voters_count_to_polls.rb
- db/schema.rb 2 additions, 1 deletiondb/schema.rb
Loading
Please register or sign in to comment