-
-
Notifications
You must be signed in to change notification settings - Fork 7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support pushing and receiving updates to poll tallies #10209
Support pushing and receiving updates to poll tallies #10209
Conversation
29d705a
to
9fbc2b7
Compare
|
11ae11d
to
99ccb94
Compare
99ccb94
to
295530e
Compare
Does this mean that if you boost or vote in a poll you get a notification of the results when it closes? :o If so, I love that. |
@Cassolotl no, it only notifies the author of the poll. We could extend that to voters or people who boosted it, but I'm not sure we should do that (and it would be slightly trickier). Also, we need to change the code so that the new notification type isn't sent to unsupporting clients (it breaks some of them). |
Extended the notification to apply to all users who have voted, should handle both local and remote polls |
* Process incoming poll tallies update * Send Update on poll vote * Do not send Updates for a poll more often than once every 3 minutes * Include voters in people to notify of results update * Schedule closing poll worker on poll creation * Add new notification type for ending polls * Add front-end support for ended poll notifications * Fix UpdatePollSerializer * Fix Updates not being triggered by local votes * Fix tests failure * Fix web push notifications for closing polls * Minor cleanup * Notify voters of both remote and local polls when those close * Fix delivery of poll updates to mentioned accounts and voters
…stodon#10246) * Fix poll update handler calling method was that was not available Fix regression from mastodon#10209 * Refactor VoteService * Refactor ActivityPub::DistributePollUpdateWorker and optimize it * Fix typo * Fix typo
* Process incoming poll tallies update * Send Update on poll vote * Do not send Updates for a poll more often than once every 3 minutes * Include voters in people to notify of results update * Schedule closing poll worker on poll creation * Add new notification type for ending polls * Add front-end support for ended poll notifications * Fix UpdatePollSerializer * Fix Updates not being triggered by local votes * Fix tests failure * Fix web push notifications for closing polls * Minor cleanup * Notify voters of both remote and local polls when those close * Fix delivery of poll updates to mentioned accounts and voters
…stodon#10246) * Fix poll update handler calling method was that was not available Fix regression from mastodon#10209 * Refactor VoteService * Refactor ActivityPub::DistributePollUpdateWorker and optimize it * Fix typo * Fix typo
Update
activities onQuestion
objects, treating them the same way as polling thoseQuestion
shide_totals
unset has been processed, schedule a job to issue anUpdate
to the audience of the poll (every mentioned user, everyone who has boosted the toot, everyone who has voted, and, if the poll is not a direct message, every follower). Only one job at a time can exist.Update
to the people listed above.