# 禁用投票限制似乎会导致主题投票中的通知提示失效

**URL:** https://meta.discourse.org/t/disabling-vote-limits-seems-to-break-notification-prompt-in-topic-voting/407512
**Category:** Bug
**Tags:** topic-voting, fixed
**Created:** [2026年七月13日 21:53 UTC](https://meta.discourse.org/t/disabling-vote-limits-seems-to-break-notification-prompt-in-topic-voting/407512 "2026-07-13T21:53:58Z")
**Posts on this page:** 1
**Showing post:** 3

<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年七月15日 10:41 UTC](https://meta.discourse.org/t/disabling-vote-limits-seems-to-break-notification-prompt-in-topic-voting/407512/3 "2026-07-15T10:41:11Z")

</div>

感谢 @Moin 的报告 👍 该问题将通过以下链接修复：

> <https://github.com/discourse/discourse/pull/41731>
>
> When topic voting vote limits are disabled, the "Notify me about new posts"
> prom…pt shown after voting never appeared. That prompt is part of the menu the
> vote button opens, but the menu was only rendered when vote limits were
> enabled — with limits off the button had no menu at all, so both the
> notification prompt and the remove-vote action were unreachable.
> 
> The fix renders the menu for any signed-in user rather than gating it on vote
> limits. The remaining-votes rows stay tied to limits being enabled, while
> remove-vote and watch-topic show whenever the user has voted. Removing a vote
> with limits disabled now goes through the menu, matching the behavior when
> limits are enabled.
> 
> Reported at https://meta.discourse.org/t/disabling-vote-limits-seems-to-break-notification-prompt-in-topic-voting/407512
> 
> The second commit is follow-up housekeeping on the plugin, kept separate from
> the fix: removing dead code and duplication in the vote components and
> initializers, counting a user's votes with \`COUNT\` instead of loading every
> row on each current-user serialization, and deleting orphaned i18n keys and a
> route-map filename left over from the plugin's former name.
> 
> \### Testing
> 
> \- Added a system spec covering the notification prompt appearing after voting
> with vote limits disabled.
> \- Existing topic-voting system and JS specs pass; the model spec still covers
> the trust-level-0 lock via \`reached\_voting\_limit?\`.

---

_[View the full topic](https://meta.discourse.org/t/disabling-vote-limits-seems-to-break-notification-prompt-in-topic-voting/407512)._
