mirror of
https://github.com/twisterarmy/twister-html.git
synced 2025-03-13 05:51:03 +00:00
Merge pull request #228 from Tschaul/duplicate-posts-fix
Fixing duplicate posts when scrolling in profile view
This commit is contained in:
commit
ddbfbb6cf0
@ -177,7 +177,7 @@ function requestPostRecursively(containerToAppend,username,resource,count,useGet
|
|||||||
if( streamItems.length != 0 ) {
|
if( streamItems.length != 0 ) {
|
||||||
var lastItem = streamItems.eq(streamItems.length-1);
|
var lastItem = streamItems.eq(streamItems.length-1);
|
||||||
resource = "post" + lastItem.find(".post-data").attr("data-lastk");
|
resource = "post" + lastItem.find(".post-data").attr("data-lastk");
|
||||||
max_id = parseInt(lastItem.find(".post-data").attr("data-id"))-1;
|
max_id = parseInt(lastItem.find(".post-data").attr("data-lastk"));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user