mirror of
https://github.com/flarum/core.git
synced 2025-07-19 07:41:22 +02:00
Don't add duplicate posts to a discussion
This commit is contained in:
@@ -88,7 +88,7 @@ class PostStream extends mixin(Component, evented) {
|
||||
stream is not visible.
|
||||
*/
|
||||
pushPost(post) {
|
||||
if (this.visibleEnd >= this.count() - 1) {
|
||||
if (this.visibleEnd >= this.count() - 1 && this.posts.indexOf(post) === -1) {
|
||||
this.posts.push(post);
|
||||
this.visibleEnd++;
|
||||
}
|
||||
|
Reference in New Issue
Block a user