X-Git-Url: https://git.pterodactylus.net/?p=Sone.git;a=blobdiff_plain;f=src%2Fmain%2Fresources%2Fstatic%2Fjavascript%2Fsone.js;h=a4ad957acf2e18b86ed0aa333112079a66426fdb;hp=7d7bcb557b0c07dd49a965a59f17f5933ea851fa;hb=8cf44910fb8d20d99b15c575e73b0521205a3e76;hpb=99d1fdab0ff92c8d99b5ef578ccfce54c8eebd61 diff --git a/src/main/resources/static/javascript/sone.js b/src/main/resources/static/javascript/sone.js index 7d7bcb5..a4ad957 100644 --- a/src/main/resources/static/javascript/sone.js +++ b/src/main/resources/static/javascript/sone.js @@ -611,10 +611,6 @@ function loadNewPost(postId) { loadedPosts[postId] = true; $.getJSON("ajax/getPost.ajax", { "post" : postId }, function(data, textStatus) { if ((data != null) && data.success) { - /* maybe weird timing stuff ensues. */ - if (data.post.id in loadedPosts) { - return; - } var firstOlderPost = null; $("#sone .post").each(function() { if (getPostTime(this) < data.post.time) { @@ -642,10 +638,6 @@ function loadNewReply(replyId) { $.getJSON("ajax/getReply.ajax", { "reply": replyId }, function(data, textStatus) { /* find post. */ if ((data != null) && data.success) { - /* maybe weird timing stuff ensues. */ - if (data.reply.id in loadedReplies) { - return; - } $("#sone .post#" + data.reply.postId).each(function() { var firstNewerReply = null; $(this).find(".replies .reply").each(function() {