diff --git a/js/mod/recent-posts-auto-reload.js b/js/mod/recent-posts-auto-reload.js index 0bad51bd..0db4ea62 100644 --- a/js/mod/recent-posts-auto-reload.js +++ b/js/mod/recent-posts-auto-reload.js @@ -220,7 +220,11 @@ $(document).ready(function(){ } // Notify on all posts, not just the first unread if (notify === "all") { - var body = $(this).children('.body').html().replace(//gi, "\n"); + if ($(this).hasClass('thread')){ + var body = $(this).children('.post').children('.body').html().replace(//gi, "\n"); + } else { + var body = $(this).children('.body').html().replace(//gi, "\n"); + } var n = new Notification("New reply to "+title, {body: $('
').html(body).text()}); } if ($("div.post,div.thread").length > 1){