Fix mark as read bug

This commit is contained in:
Toby Zerner 2015-02-12 15:18:26 +10:30
parent 87159bd9a0
commit 639e86cf4e

View File

@ -78,7 +78,7 @@ export default Ember.Component.extend(FadeIn, HasItemLists, {
},
markAsRead: function() {
var discussion = this.get('discussion');
var discussion = this.get('discussion.content');
if (discussion.get('isUnread')) {
discussion.set('readNumber', discussion.get('lastPostNumber'));
discussion.save();