mirror of
https://gh.wpcy.net/https://github.com/discourse/discourse.git
synced 2026-06-19 01:44:11 +08:00
Previously, opening the "who voted" popup on a closed topic returned an empty list even though the vote count still showed the correct total. The same was true for any topic whose votes had been archived (e.g. moved out of a voting category, or trashed). This was a regression from #39394, which added `votes.active` to `Topic#who_voted` alongside the same filter applied to "my votes" and `/topics/voted-by/:username`. That filter is correct for those per-user listings — you don't want closed-topic votes polluting "your votes" — but the `who_voted` popup is about historical participation on a specific topic, not per-user vote accounting. This change drops `.active` from `Topic#who_voted` so archived votes are included, restoring the pre-regression behaviour. The accounting filters in `Votes::Remove`, `User#topics_with_active_vote`, the voted-topics query, and the `current_user_voted` flag are unchanged. https://meta.discourse.org/t/403286 Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| badge_queries.rb | ||
| categories_controller_extension.rb | ||
| category_extension.rb | ||
| engine.rb | ||
| list_controller_extension.rb | ||
| topic_extension.rb | ||
| topic_merger.rb | ||
| topic_query_extension.rb | ||
| topic_votes_filter.rb | ||
| user_extension.rb | ||
| user_merger.rb | ||
| web_hook_extension.rb | ||