mirror of
https://github.com/twisterarmy/twister-calm.git
synced 2025-01-27 07:04:49 +00:00
fix a couple timeline update bugs
This commit is contained in:
parent
c64f8ac113
commit
eedeececa5
@ -278,12 +278,12 @@ function processLastHave(userHaves)
|
||||
// callback for getposts to update the number of new pending posts not shown in timeline
|
||||
function processNewPostsConfirmation(expected, posts)
|
||||
{
|
||||
_newPostsPending += posts.length;
|
||||
_newPostsPending += posts.length -1;
|
||||
|
||||
//we don't want to produce alert for the posts that won't be displayed
|
||||
var p2h = 0;
|
||||
for( var i = posts.length-1; i >= 0; i-- ) {
|
||||
if (willBeHiden(posts[i])) {
|
||||
if (willBeHidden(posts[i])) {
|
||||
//posts.splice(i, 1);
|
||||
p2h++;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user