Topic closed temporarily due to community flags overwrites category auto-close timer

If a category has an auto-close timer set and a the topic is subsequently closed temporarily due to a large number of community flags, after the topic re-opens the category based auto-close timer is not re-enabled.

Repro:

  1. Create a topic in a category with an auto-close timer.
  2. Auto-close topic timer activates.
  3. Receive >12 flags in the topic.
  4. Topic closes due to community flags.
  5. Close Temporarily timer activates for 4 hours.
  6. Topic re-opens in 4 hours.
  7. Auto-close topic timer is not re-enabled.
5 Likes

This might be by design, but let’s check with @tgxworld

Fixed in

https://github.com/discourse/discourse/commit/486bbe9cc280eb9fc5da4dd7ede9b9323723601e

One thing I wasn’t sure is if we should calculate the offset since the last post before the flag and set the topic timer to count down from there. Right now, the code basically restores the category auto close timer whenever a topic is auto opened.

5 Likes

This topic was automatically closed after 6 days. New replies are no longer allowed.