Because I think messing with members Preference settings has too much risk of upsetting members I’ve not tried it.
But basically it’s running a well crafted query in the CLI eg.
So you want to edit user setting for all Discourse users? Great, let’s get started!
From console, run this command:
./launcher enter app
Access Rails console:
rails c
From Rails console, run the query:
To set the last seen date for users who have never logged in (never seen):
User.where("last_seen_at IS NULL").update_all(last_seen_at: 1.week.ago)
To default all users to mailing list mode (send an email for every new post):
UserOption.update_all(mailing_list_mode: true)
To default all u…
Following the release of Discourse v2.4.0.beta7 (or if you have this commit ), admins now have the option to set the category tracking levels of all existing users when setting the default category tracking levels in their site settings:
Add a category to one of the following site settings, then select the green checkbox button.
[10%20PM]
A modal window will pop up with the following options:
[10%20PM]
The old way using the console Discourse allows you to specify
default…
Want to change ownership of all the posts by a specific user? Let’s do it!
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
Change ownership of all public posts
rake users:change_post_ownership["old_username","new_username"]
The above command will transfer ownership of all public topics/posts by @old_username to @new_username.
Change ownership of all private posts
rake users:change_pos…