UNPKG

fraction.io

Version:

Your personalized community aggregator.

23 lines (20 loc) 520 B
'use strict'; Routes.user = { name: 'user', controller: Routes.Controllers.page, path: '/user/:username', waitOn: function () { return Meteor.subscribe('user', this.params.username); }, data: function () { Session.set('sortType', null); Session.set('currentView', 'Profile'); Session.set('showComments', false); Session.set('back', Session.get('sortType')); Session.set('posts', Posts.find({ author: this.params.username }, { reactive: false }).fetch()); } };