For private or public profiles:
- Go to Settings -> Privacy -> Hidden Users (select the corresponding profile).
- Choose the user you wish to unhide.
- Tap Show User Content.
To unhide a hidden message: Go to Settings -> Privacy -> Hidden Messages, choose the message, and tap Unblock.
