Restrict public viewing of user profile

Understood. Now, I am trying to figure out a way out of this: I would like to have a better solution for hiding the last_seen_at than to re-include the whole user/user.hbs in a user script just to drop the model.last_seen_at line (if viewed by an anonymous user). Since last_seen_at is a property of the model object which I cannot really overwrite - I do not really see another way out, does anybody else?

That’s the solution I’d use. Granted, I’d be thinking about other tweaks and edits I’d want to do in the future and would figure that I may as well start now.

Related:

(Posting to say this has been requested before; I fully support this option to be in core.)

4 Likes

You can now use the “hide_user_profiles_from_public” site setting :grapes:

https://github.com/discourse/discourse/commit/bb79e6aff7acd95d1dac8fcf367978af2ad81162

7 Likes