Check for post time at the correct place.
[Sone.git] / src / main / resources / static / javascript / sone.js
index cd34ed2..3c229e0 100644 (file)
@@ -716,9 +716,9 @@ function loadNewPost(postId, soneId, recipientId, time) {
                                return;
                        }
                }
-               if (getPostTime($("#sone .post").last()) > time) {
-                       return;
-               }
+       }
+       if (getPostTime($("#sone .post").last()) > time) {
+               return;
        }
        $.getJSON("getPost.ajax", { "post" : postId }, function(data, textStatus) {
                if ((data != null) && data.success) {