diff --git a/app/assets/javascripts/discourse/components/scrolling-post-stream.js.es6 b/app/assets/javascripts/discourse/components/scrolling-post-stream.js.es6 index 490ff3d0a..4f4b87991 100644 --- a/app/assets/javascripts/discourse/components/scrolling-post-stream.js.es6 +++ b/app/assets/javascripts/discourse/components/scrolling-post-stream.js.es6 @@ -124,6 +124,7 @@ export default MountWidget.extend({ this._super(); const debouncedScroll = () => Ember.run.debounce(this, this._scrollTriggered, 10); + this.appEvents.on('post-stream:refresh', debouncedScroll); $(document).bind('touchmove.post-stream', debouncedScroll); $(window).bind('scroll.post-stream', debouncedScroll); this._scrollTriggered(); @@ -152,6 +153,7 @@ export default MountWidget.extend({ this.appEvents.off('post-stream:refresh'); this.$().off('mouseenter.post-stream'); this.$().off('mouseleave.post-stream'); + this.appEvents.off('post-stream:refresh'); } }); diff --git a/app/assets/javascripts/discourse/widgets/post-stream.js.es6 b/app/assets/javascripts/discourse/widgets/post-stream.js.es6 index d6697a6d6..49d142522 100644 --- a/app/assets/javascripts/discourse/widgets/post-stream.js.es6 +++ b/app/assets/javascripts/discourse/widgets/post-stream.js.es6 @@ -7,7 +7,6 @@ const DAY = 1000 * 60 * 60 * 24; export default createWidget('post-stream', { tagName: 'div.post-stream', - html(attrs) { const posts = attrs.posts || []; const postArray = posts.toArray();