X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Fmain%2Fresources%2Fstatic%2Fjavascript%2Fsone.js;h=70d124e58b3046f3ca94454b1289794d5e073a5b;hb=cfba9b2bee5b9059c57bceaf66778ee169ad0a74;hp=dd7b7498833f1032e6d54f1161512deb16d15697;hpb=526050c6695cb5ae76f0fe9b393d3c5d9b5c83db;p=Sone.git diff --git a/src/main/resources/static/javascript/sone.js b/src/main/resources/static/javascript/sone.js index dd7b749..70d124e 100644 --- a/src/main/resources/static/javascript/sone.js +++ b/src/main/resources/static/javascript/sone.js @@ -710,8 +710,12 @@ function loadNewPost(postId, soneId, recipientId) { if (hasPost(postId)) { return; } - if (!isIndexPage() && (!isViewPostPage() || (getShownPostId() != postId))) { - return; + if (!isIndexPage()) { + if (!isViewPostPage() || (getShownPostId() != postId)) { + if (!isViewSonePage() || ((getShownSoneId() != soneId) && (getShownSoneId() != recipientId))) { + return; + } + } } $.getJSON("getPost.ajax", { "post" : postId }, function(data, textStatus) { if ((data != null) && data.success) {