Apply auto-close to existing topics

You configured one or more of your categories to auto-close topics and noticed that this applies only to newly created topics in those categories? Don’t worry! There’s a script that applies the auto-close setting to old topics.

Access Your Site

First connect to your Droplet via SSH, and enter the Docker container for your Discourse instances:

cd /var/discourse
./launcher enter app

Apply the auto-close settings

Run this command:

rake topics:apply_autoclose
31 Likes