mirror of
https://github.com/flarum/framework.git
synced 2024-11-26 10:14:16 +08:00
Fix mark as read bug
This commit is contained in:
parent
87159bd9a0
commit
639e86cf4e
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue
Block a user