Add a feature that allows a user to make their account “private”. A private account should normally only the profile page without messages.
You can follow a private account — but that user will need to approve your follow. At the point you are successfully following a private account, you should then be able to see their messages.
Note: this will require some schema changes and thoughtful design. Can you do this in a way that doesn’t sprinkle (even more) if conditions around? Can you add any useful functions on the User or Message classes?
Add a feature that allows a user to make their account “private”. A private account should normally only the profile page without messages.
You can follow a private account — but that user will need to approve your follow. At the point you are successfully following a private account, you should then be able to see their messages.
Note: this will require some schema changes and thoughtful design. Can you do this in a way that doesn’t sprinkle (even more) if conditions around? Can you add any useful functions on the User or Message classes?