Always append new posts to the “posts” div.
[Sone.git] / src / main / resources / static / javascript / sone.js
index bc7d7ea..1944efe 100644 (file)
@@ -694,7 +694,7 @@ function loadNewPost(postId) {
                        if (firstOlderPost != null) {
                                newPost.insertBefore(firstOlderPost);
                        } else {
-                               $("#sone .post:last").append(newPost);
+                               $("#sone #posts").append(newPost);
                        }
                        ajaxifyPost(newPost);
                        newPost.slideDown();