2019-10-24 22:23:32 -04:00
|
|
|
export default Discourse.Route.extend({
|
|
|
|
model() {
|
|
|
|
return {};
|
|
|
|
},
|
|
|
|
|
|
|
|
setupController(controller, model) {
|
|
|
|
if (this.currentUser.id !== this.modelFor("user").id) {
|
|
|
|
this.replaceWith("userActivity");
|
2019-10-24 23:00:59 -04:00
|
|
|
} else {
|
2019-10-24 22:23:32 -04:00
|
|
|
controller.setProperties({ model });
|
2019-10-24 23:00:59 -04:00
|
|
|
}
|
2019-10-24 22:23:32 -04:00
|
|
|
}
|
|
|
|
});
|