X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Fmain%2Fresources%2Fstatic%2Fjavascript%2Fsone.js;h=ccf71491deda267ec4d4ed5f10868d3f70cd0e6c;hb=2ec19df5db62b8aea17a6cc13d908f9b98099ef4;hp=9aa0b8219168935b14f8293583ca024e0661422b;hpb=18338415117c61708e349222af566a09a9b490d6;p=Sone.git diff --git a/src/main/resources/static/javascript/sone.js b/src/main/resources/static/javascript/sone.js index 9aa0b82..ccf7149 100644 --- a/src/main/resources/static/javascript/sone.js +++ b/src/main/resources/static/javascript/sone.js @@ -700,6 +700,9 @@ function loadNewPost(postId) { if (hasPost(postId)) { return; } + if (!isIndexPage() && (!isViewPostPage() || (getShownPostId() != postId))) { + return; + } $.getJSON("getPost.ajax", { "post" : postId }, function(data, textStatus) { if ((data != null) && data.success) { if (hasPost(data.post.id)) {