This allows users who are privacy conscious to disable the presence features of the forum as well as their public profile.
15 lines
318 B
JavaScript
15 lines
318 B
JavaScript
export default Discourse.Route.extend({
|
|
model() {
|
|
let user = this.modelFor("user");
|
|
if (user.get("profile_hidden")) {
|
|
return this.replaceWith("user.profile-hidden");
|
|
}
|
|
|
|
return user;
|
|
},
|
|
|
|
setupController(controller, user) {
|
|
this.controllerFor("user-activity").set("model", user);
|
|
}
|
|
});
|