mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-23 15:48:43 -05:00
FIX: Don't append posts directly to the stream unless all posts are loaded.
This commit is contained in:
parent
fba0958486
commit
f7b3856101
1 changed files with 3 additions and 1 deletions
|
@ -413,7 +413,9 @@ Discourse.PostStream = Em.Object.extend({
|
|||
@param {Discourse.Post} the post we saved in the stream.
|
||||
**/
|
||||
commitPost: function(post) {
|
||||
this.appendPost(post);
|
||||
if (this.get('loadedAllPosts')) {
|
||||
this.appendPost(post);
|
||||
}
|
||||
this.get('stream').addObject(post.get('id'));
|
||||
this.set('stagingPost', false);
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue