Apply auto-close to existing topics

:bookmark: This documentation provides instructions on how to apply the auto-close feature to existing topics using a specific script.

When you configure categories in Discourse to auto-close topics, this setting applies only to new topics. However, you can apply this setting to existing topics as well through a simple script. Topics closed using this script are closed silently to avoid unnecessary notifications.

Accessing your site

To begin, connect to your server via SSH and enter the Docker container for your Discourse instance by executing the following commands:

cd /var/discourse
./launcher enter app

Applying the auto-close settings

Once inside the container, run the following command to apply the auto-close settings to existing topics:

rake topics:apply_autoclose

Last edited by @tshenry 2025-01-22T04:37:11Z

Check documentPerform check on document:
32 Likes