From: David ‘Bombe’ Roden Date: Sun, 28 Nov 2010 20:19:14 +0000 (+0100) Subject: Ignore a post if neither sender nor recipient match the currently viewed Sone. X-Git-Tag: 0.3.2-RC1~5 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=0bc877172a9d958d18b162f81cb3cfb53362d5b7;p=Sone.git Ignore a post if neither sender nor recipient match the currently viewed Sone. --- diff --git a/src/main/resources/static/javascript/sone.js b/src/main/resources/static/javascript/sone.js index 1944efe..3646f73 100644 --- a/src/main/resources/static/javascript/sone.js +++ b/src/main/resources/static/javascript/sone.js @@ -680,7 +680,7 @@ function loadNewPost(postId) { loadedPosts[postId] = true; $.getJSON("getPost.ajax", { "post" : postId }, function(data, textStatus) { if ((data != null) && data.success) { - if (!isIndexPage() && !(isViewSonePage() && (getShownSoneId() == data.post.sone))) { + if (!isIndexPage() && !(isViewSonePage() && ((getShownSoneId() == data.post.sone) || (getShownSoneId() == data.post.recipient)))) { return; } var firstOlderPost = null;