mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-27 17:46:05 -05:00
fixed regression
This commit is contained in:
parent
1aa96db594
commit
814be151c1
1 changed files with 4 additions and 2 deletions
|
@ -195,7 +195,7 @@ Discourse.TopicController = Discourse.ObjectController.extend({
|
|||
loadPosts: function(opts) {
|
||||
var topicController = this;
|
||||
this.get('content').loadPosts(opts).then(function () {
|
||||
Em.run.next(function () { topicController.updateBottomBar() });
|
||||
Em.run.next(function () { topicController.updateBottomBar(); });
|
||||
});
|
||||
},
|
||||
|
||||
|
@ -310,7 +310,9 @@ Discourse.TopicController = Discourse.ObjectController.extend({
|
|||
return;
|
||||
}
|
||||
|
||||
topic.set('posts_count', topic.get('posts_count') + 1);
|
||||
// Robin, TODO when a message comes in we need to figure out if it even goes
|
||||
// in this view ... for now fixed the general case
|
||||
topic.set('filtered_posts_count', topic.get('filtered_posts_count') + 1);
|
||||
topic.set('highest_post_number', data.post_number);
|
||||
topic.set('last_poster', data.user);
|
||||
topic.set('last_posted_at', data.created_at);
|
||||
|
|
Loading…
Reference in a new issue