Merge pull request #63 from mmn/no_duplicates_in_feed_end

Duplicate items appeared when scrolling to bottom of feed
This commit is contained in:
Hannes Mannerheim 2015-01-19 16:52:19 +01:00
commit fce5e17f51

View File

@ -1051,7 +1051,7 @@ $(window).scroll(function() {
}
// normal streams
else {
var getVars = qOrAmp(window.currentStream) + 'max_id=' + $('#feed-body').children('.stream-item').last().attr('data-quitter-id-in-stream');
var getVars = qOrAmp(window.currentStream) + 'max_id=' + ($('#feed-body').children('.stream-item').last().attr('data-quitter-id-in-stream')-1);
}
display_spinner('#footer-spinner-container');