Apply auto-close to existing topics


(Gerhard Schlager) #1

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

Topics older than auto-close age should auto-close
Mass-close old topics based on last activity