In a discussion titled “Auto Lock Topics After 1 Minute?” under the Support category, Profamii asks how to auto-lock topics after just one minute, since Discourse’s “Auto lock” field only accepts hours. codinghorror initially suggests setting it to zero hours but later questions the rationale. Profamii confirms zero doesn’t work and references a meta thread about immediate topic closure. In a follow-up, Profamii explains the use case: a Q&A category where users should only post new topics, not reply — and since permissions can’t restrict replies without hiding the category, auto-locking is the workaround. david offers a solution: entering a decimal value less than 1 (e.g., 0.001) in the “auto close topics” field, which triggers closure within seconds. Profamii confirms this works and thanks david for the fix. The workaround effectively simulates minute-level auto-locking by using fractional hours, bypassing the UI’s hour-only restriction.
So I’ve seen this on a Discourse Forum and I’m wondering how it’s done. In a particular category, topics are closed after a minute, how can you do this as the “Auto lock field” accepts hours only and not minutes?
@codinghorror using this for a category where users will answer questions, and since I can’t deny permission to create and see but no replying, this is my only option.
It is a workaround, but you can put a number less than 1 in the “auto close topics” box. I just tried 0.001 and it closed the topic after a few seconds. Putting zero does not work.