X-Git-Url: https://git.pterodactylus.net/?p=Sone.git;a=blobdiff_plain;f=src%2Fmain%2Fresources%2Fstatic%2Fjavascript%2Fsone.js;h=f3ea9e83e4483a67828d365c68455f84b625e53a;hp=cb16e6420d0455ad3d5adc2dea4b8310ae58daa7;hb=945df2c5ed34ba5be654b2a084ade589a3125067;hpb=e508676493627c055b09e1eef26ba551aefa6e67 diff --git a/src/main/resources/static/javascript/sone.js b/src/main/resources/static/javascript/sone.js index cb16e64..f3ea9e8 100644 --- a/src/main/resources/static/javascript/sone.js +++ b/src/main/resources/static/javascript/sone.js @@ -650,6 +650,9 @@ function loadNewPost(postId) { loadedPosts[postId] = true; $.getJSON("ajax/getPost.ajax", { "post" : postId }, function(data, textStatus) { if ((data != null) && data.success) { + if (!isIndexPage() && !(isViewSonePage() && (getSoneId() == data.post.sone))) { + return; + } var firstOlderPost = null; $("#sone .post").each(function() { if (getPostTime(this) < data.post.time) {