# 主题关闭时投票未返回

**URL:** <https://meta.discourse.org/t/votes-not-being-returned-on-topic-close/287963>\
**Category:** Bug\
**Tags:** topic-voting\
**Created:** [2023年十二月7日 16:35 UTC](https://meta.discourse.org/t/votes-not-being-returned-on-topic-close/287963 "2023-12-07T16:35:09Z")\
**Posts on this page:** 1\
**Showing post:** 11

<div class="post-metadata">

**Author:** ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)\
**Post date:** [2023年十二月12日 11:05 UTC](https://meta.discourse.org/t/votes-not-being-returned-on-topic-close/287963/11 "2023-12-12T11:05:12Z")

</div>

> [@Luke\_Cousins](#):
>
> 非常感谢您的帮助 🙏 期待修复版本的发布。

不客气。 🙂 修复程序现已推出：

> <https://github.com/discourse/discourse-topic-voting/pull/175>
>
> We were triggering the \`vote\_reclaim\` job on scenarios where votes shouldn't be …reclaimed:
> 
> \- editing a closed/archived/deleted topic's \`tracked\_topic\_fields\` (\`title\`/\`archetype\`/\`tags\`) field while not changing the \`category\_id\`
> 
> \- moving a closed/archived/deleted topic to a different, votes-enabled category
> 
> \- unarchiving a closed topic
> 
> \- opening an archived topic
> 
> Tests were also added covering these use cases.

这将防止将来再次发生这种情况，但不会修复已有的问题。

可以通过 rails 控制台重置它们，但如果您没有太多问题，我认为使用 UI 触发“退回投票”机制会更容易。

> [@Luke\_Cousins](#):
>
> 一个主题被作者删除了，这似乎并没有退回投票，我尝试“打开”然后“关闭”也无法退回。您有什么建议吗？或者 bug 修复会附带一个数据修复迁移吗？如果是这样，我们可以等待那个？

嗯。 🤔 真遗憾。您可以尝试取消删除它，将其移动到您的 `#staff` 类别，然后关闭并将其存档。这三个操作都应该会释放投票，所以希望其中一个会起作用。 🤞 如果不行，我们可以采取 rails 方法来处理顽固的问题。

---

_[View the full topic](https://meta.discourse.org/t/votes-not-being-returned-on-topic-close/287963)._
