# Automatically close solved topics after N hours

**URL:** <https://meta.discourse.org/t/automatically-close-solved-topics-after-n-hours/58383>\
**Category:** Feature\
**Tags:** solved\
**Created:** [2015 年 8 月 6 日午前 5:13 UTC](https://meta.discourse.org/t/automatically-close-solved-topics-after-n-hours/58383 "2015-08-06T05:13:59Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![tgxworld](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tgxworld/32/106117_2.png) [@tgxworld](https://meta.discourse.org/u/tgxworld)\
**Post date:** [2017 年 5 月 19 日午前 2:36 UTC](https://meta.discourse.org/t/automatically-close-solved-topics-after-n-hours/58383/5 "2017-05-19T02:36:41Z")

</div>

Pretty simple, just have to call `topic.set_or_create_timer(TopicTimer.types[:close], SiteSetting.solved_topics_auto_close_hours)` once the topic is marked as solved.

---

_[View the full topic](https://meta.discourse.org/t/automatically-close-solved-topics-after-n-hours/58383)._
