# 无法查看已关闭话题的投票者

**URL:** <https://meta.discourse.org/t/cant-view-who-voted-for-a-closed-topic/403286>\
**Category:** Bug\
**Tags:** topic-voting, fixed\
**Created:** [2026年五月19日 04:56 UTC](https://meta.discourse.org/t/cant-view-who-voted-for-a-closed-topic/403286 "2026-05-19T04:56:35Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![darkpixlz](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/darkpixlz/32/549896_2.png) [@darkpixlz](https://meta.discourse.org/u/darkpixlz)\
**Post date:** [2026年五月19日 04:56 UTC](https://meta.discourse.org/t/cant-view-who-voted-for-a-closed-topic/403286/1 "2026-05-19T04:56:35Z")

</div>

这似乎是一个很久以前就存在的问题 [forever ago](https://meta.discourse.org/t/cannot-view-voters-on-a-closed-topic/77712)，但现在它似乎又出现了，除非有我不知道的更新……

要复现这个问题，只需进入 #Contribute > Feature 中任何启用了投票功能的已锁定主题，然后尝试查看谁投了票。UI 不会显示任何内容，API 也返回空列表：

 ![image](https://global.discourse-cdn.com/meta/original/4X/4/0/3/40330549994c0a157581b9f9341674c90ef44182.png)

我尝试在安全模式（即使这不会改变后端任何内容）下运行，并且没有启用任何主题，结果如预期一样，同样的问题再次出现。

---

<div class="post-metadata">

**Author:** ![zogstrip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zogstrip/32/512781_2.png) [@zogstrip](https://meta.discourse.org/u/zogstrip)\
**Post date:** [2026年五月26日 16:53 UTC](https://meta.discourse.org/t/cant-view-who-voted-for-a-closed-topic/403286/3 "2026-05-26T16:53:53Z")

</div>

将由以下修复

> <https://github.com/discourse/discourse/pull/40314>
>
> Previously, opening the "who voted" popup on a closed topic returned an empty li…st 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

---

<div class="post-metadata">

**Author:** ![darkpixlz](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/darkpixlz/32/549896_2.png) [@darkpixlz](https://meta.discourse.org/u/darkpixlz)\
**Post date:** [2026年五月29日 16:54 UTC](https://meta.discourse.org/t/cant-view-who-voted-for-a-closed-topic/403286/4 "2026-05-29T16:54:09Z")

</div>

此主题在最后一次回复 3 天后自动关闭。不再允许新回复。
