mirror of
https://github.com/codeninjasllc/discourse.git
synced 2025-04-28 15:03:58 -04: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) {
|
loadPosts: function(opts) {
|
||||||
var topicController = this;
|
var topicController = this;
|
||||||
this.get('content').loadPosts(opts).then(function () {
|
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;
|
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('highest_post_number', data.post_number);
|
||||||
topic.set('last_poster', data.user);
|
topic.set('last_poster', data.user);
|
||||||
topic.set('last_posted_at', data.created_at);
|
topic.set('last_posted_at', data.created_at);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue