How to unhide a blocked user's posts?


#1

Hey there!

So, one of our moderators had to block one of our leaders temporarily to fix something in her account. When he unblocked her, her posts remained hidden, as expected. Some users have been confused on why all of the posts seem to be flagged, and I’d like to know if there’s a way to unhide all of the user’s posts. Thanks! :slightly_smiling_face:


#2

Just remembered the option to “Unhide Post”, but that’s still pretty tedious.


(Régis Hanol) #3

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 { |p| p.unhide! }

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


Trouble resolving system-auto-flagged posts / silenced user