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.
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 @SaraDev 2024-10-30T21:56:30Z
Check document
Perform check on document: