mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: Don't append posts directly to the stream unless all posts are loaded.
This commit is contained in:
parent
fba0958486
commit
f7b3856101
@ -413,7 +413,9 @@ Discourse.PostStream = Em.Object.extend({
|
|||||||
@param {Discourse.Post} the post we saved in the stream.
|
@param {Discourse.Post} the post we saved in the stream.
|
||||||
**/
|
**/
|
||||||
commitPost: function(post) {
|
commitPost: function(post) {
|
||||||
this.appendPost(post);
|
if (this.get('loadedAllPosts')) {
|
||||||
|
this.appendPost(post);
|
||||||
|
}
|
||||||
this.get('stream').addObject(post.get('id'));
|
this.get('stream').addObject(post.get('id'));
|
||||||
this.set('stagingPost', false);
|
this.set('stagingPost', false);
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user