How to unhide a blocked user's posts?

The only way I can think of would be to use the rails console. SSH into your server and then

cd /var/discourse
./launcher enter app
rails c
User.find(<id>).posts.each(&:unhide!)

Where “<id>” is the id of the moderator.

6 Likes