newPost = $(data.post.html).addClass("hidden");
if ($(".post-author-local", newPost).text() == "true") {
newPost.removeClass("new");
+ (function(newPost) {
+ setTimeout(function() {
+ markPostAsKnown(newPost, false);
+ }, 5000);
+ })(newPost);
}
if (firstOlderPost != null) {
newPost.insertBefore(firstOlderPost);
newReply = $(data.reply.html).addClass("hidden");
if ($(".reply-author-local", newPost).text() == "true") {
newPost.removeClass("new");
+ (function(newReply) {
+ setTimeout(function() {
+ markReplyAsKnown(newReply, false);
+ }, 5000);
+ })(newReply);
}
if (firstNewerReply != null) {
newReply.insertBefore(firstNewerReply);