Browse Source

bug fixed

master
Hedgehog 11 years ago
parent
commit
61eee22cd8
  1. 4
      js/twister_timeline.js

4
js/twister_timeline.js

@ -282,7 +282,7 @@ function processNewPostsConfirmation(expected, posts)
_newPostsPending += posts.length; _newPostsPending += posts.length;
//we don't want to produce alert for the posts that won't be displayed //we don't want to produce alert for the posts that won't be displayed
var p2h = 0; var p2h = 1;
for( var i = posts.length-1; i >= 0; i-- ) { for( var i = posts.length-1; i >= 0; i-- ) {
if (willBeHidden(posts[i])) { if (willBeHidden(posts[i])) {
//posts.splice(i, 1); //posts.splice(i, 1);
@ -291,7 +291,7 @@ function processNewPostsConfirmation(expected, posts)
} }
_newPostsPending += posts.length - p2h; _newPostsPending += posts.length - p2h;
if( _newPostsPending ) { if( _newPostsPending ) {
$.MAL.reportNewPosts(_newPostsPending - 1); $.MAL.reportNewPosts(_newPostsPending);
} }
if( posts.length < expected ) { if( posts.length < expected ) {
// new DMs have probably been produced by users we follow. // new DMs have probably been produced by users we follow.

Loading…
Cancel
Save