mirror of
https://github.com/twisterarmy/twister-calm.git
synced 2025-02-04 19:14:30 +00:00
bug fixed
This commit is contained in:
parent
608f18b707
commit
61eee22cd8
@ -282,7 +282,7 @@ function processNewPostsConfirmation(expected, posts)
|
||||
_newPostsPending += posts.length;
|
||||
|
||||
//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-- ) {
|
||||
if (willBeHidden(posts[i])) {
|
||||
//posts.splice(i, 1);
|
||||
@ -291,7 +291,7 @@ function processNewPostsConfirmation(expected, posts)
|
||||
}
|
||||
_newPostsPending += posts.length - p2h;
|
||||
if( _newPostsPending ) {
|
||||
$.MAL.reportNewPosts(_newPostsPending - 1);
|
||||
$.MAL.reportNewPosts(_newPostsPending);
|
||||
}
|
||||
if( posts.length < expected ) {
|
||||
// new DMs have probably been produced by users we follow.
|
||||
|
Loading…
x
Reference in New Issue
Block a user