X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Fmain%2Fresources%2Fstatic%2Fjavascript%2Fsone.js;h=c9521b7b0e281c85dc3017ebb6a38d3a8e8251fa;hb=2288fe8a74e888e9d6a8b13ccbd322ca006c1cec;hp=f7a686d5d7731379c22ba8a172dd61798da2e34d;hpb=8f7287d2efa67700d3d6674c3520c4b8fb973103;p=Sone.git diff --git a/src/main/resources/static/javascript/sone.js b/src/main/resources/static/javascript/sone.js index f7a686d..c9521b7 100644 --- a/src/main/resources/static/javascript/sone.js +++ b/src/main/resources/static/javascript/sone.js @@ -585,7 +585,7 @@ function getStatus() { }); /* process new posts. */ $.each(data.newPosts, function(index, value) { - loadNewPost(value); + loadNewPost(value.id, value.sone, value.recipient); }); /* process new replies. */ $.each(data.newReplies, function(index, value) { @@ -706,7 +706,7 @@ function hasReply(replyId) { return $("#sone .reply#" + replyId).length > 0; } -function loadNewPost(postId) { +function loadNewPost(postId, soneId, recipientId) { if (hasPost(postId)) { return; }