From d1db00347293eeb0dd664144fe8016bf74d0cd62 Mon Sep 17 00:00:00 2001 From: discomrade Date: Fri, 15 Oct 2021 00:06:24 +0000 Subject: [PATCH] Make all notifications show, not just the first unread --- js/auto-reload.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/auto-reload.js b/js/auto-reload.js index 0d64a77b..5cdf12ae 100644 --- a/js/auto-reload.js +++ b/js/auto-reload.js @@ -240,10 +240,10 @@ $(document).ready(function(){ if (!new_posts) { first_new_post = this; makeIcon('reply'); - if (notify === "all" || (notify === "mention" && $(this).find('.own_post').length)) { + } + if (notify === "all" || (notify === "mention" && $(this).find('.own_post').length)) { var body = $(this).children('.body').html().replace(//gi, "\n"); var n = new Notification("New reply to "+$('title').text(), {body: $('
').html(body).text()}); - } } if ($("div.post").length > 1){ $(this).insertAfter($('div.post:not(.post-hover):last').next()).after('
');