FIX: Error showing Unread posts

This commit is contained in:
Robin Ward 2015-09-16 10:43:36 -04:00
parent 3ba6d54843
commit f427b6639b

View File

@ -34,6 +34,7 @@ export default {
app.register('message-bus:main', window.MessageBus, { instantiate: false });
injectAll(app, 'messageBus');
app.register('current-user:main', Discourse.User.current(), { instantiate: false });
app.register('topic-tracking-state:main', TopicTrackingState.current(), { instantiate: false });
injectAll(app, 'topicTrackingState');
@ -50,7 +51,6 @@ export default {
app.register('session:main', Session.current(), { instantiate: false });
injectAll(app, 'session');
app.register('current-user:main', Discourse.User.current(), { instantiate: false });
inject(app, 'currentUser', 'component', 'route', 'controller');
app.register('location:discourse-location', DiscourseLocation);