From 8d3881086528f01d01f3ca6e57293a26c2cf9460 Mon Sep 17 00:00:00 2001 From: Julian Steinwachs Date: Wed, 4 Mar 2015 16:51:04 +0100 Subject: [PATCH] Fixing duplicate posts when crolling in profile view --- js/twister_actions.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/twister_actions.js b/js/twister_actions.js index bad1d65..431561e 100644 --- a/js/twister_actions.js +++ b/js/twister_actions.js @@ -176,7 +176,7 @@ function requestPostRecursively(containerToAppend,username,resource,count,useGet if( streamItems.length != 0 ) { var lastItem = streamItems.eq(streamItems.length-1); 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")); } }